graphVisual

Module Contents

class GraphVisual(theWidgetGraphVisual)[source]

Provide an interface to a graph. A graph contains traces.

set_fontTicks(self, fontSize, fontname=None)[source]

Set font of the ticks

Parameters
  • fontSize – Size of the font

  • fontname – Name of the font

set_numberTicks(self, number, axis)[source]

Set the number of ticks to be displayed

Parameters
  • number – Number of ticks for the axis

  • axis – Axis (string, “bottom”, “left”, “right”, “top”)

Returns

set_fontLabel(self, fontSize, color='#000', fontname=None)[source]

Set font of the axis labels

Parameters
  • fontSize – font size

  • color – color in hexadecimal (str)

  • fontname – name of the font

get_legend(self)[source]

Get the legend

get_axis(self, axis)[source]

Get the axis

Parameters

axis – Axis (string, “bottom”, “left”, “right”, “top”)

Returns

axis object

set_fontLegend(self, font_size, font_color, fontname=None)[source]
set_label_pos(self, orientation, x_offset=0, y_offset=0)[source]
set_color_palette(self, palette)[source]
apply_palette(self)[source]
hide_axes(self)[source]
add_feature(self, theFeature)[source]

To add any pyqtgraph item to the graph

remove_feature(self, theFeature)[source]

To remove any pyqtgraph item from the graph

add_data(self, idGraph, theData)[source]
set_graph_properties(self, theTrace)[source]

This function is automatically called on creation of the graph

set_lims(self, xlim, ylim)[source]

Set limits of the graphs, xlim or ylim = [val_low, val_high]. Or None.

add_trace(self, idTrace, theTrace)[source]

Add a TraceVisual to the graph, with index idTrace

set_legend(self)[source]

Set default legend options (color and font)

set_title(self, titleName, **kwargs)[source]

Set title of the graph

Parameters

titleName – title to set

get_trace(self, idTrace)[source]

Return the TraceVisual correspondong to the index idTrace

get_all_traces(self)[source]

Return a dictionary {idtrace: TraceVisual}.

delete_trace(self, idTrace)[source]

Delete the trace of index idTrace

delete(self)[source]

Delete the graph

linkXToGraph(self, graph)[source]

Link the axis of the current graph to an other GraphVisual

update(self)[source]

Update the traces contained in the graph

fast_update(self)[source]

Same as update() but faster. This is NOT thread safe (cannot be called a second time before finishing operation)

axis_equal(self)[source]
log_mode(self, x=False, y=False)[source]
grid_off(self)[source]

Turn off grid