graphVisual
¶
Module Contents¶
Classes¶
-
class
GraphVisual
(theWidgetGraphVisual)[source]¶ Provide an interface to a graph. A graph contains traces.
-
set_fontTicks
(fontSize, fontname=None)[source]¶ Set font of the ticks
Parameters: - fontSize – Size of the font
- fontname – Name of the font
-
set_numberTicks
(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
(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_axis
(axis) → optimeed.visualize.graphs.pyqtgraphRedefine.myAxis[source]¶ Get the axis
Parameters: axis – Axis (string, “bottom”, “left”, “right”, “top”) Returns: axis object
-
add_text
(theStr, pos_x, pos_y, color=None, font=None)[source]¶ Convenient function to create and add a TextItem (see pyqtgraph doc) to the current graph
Parameters: - theStr – text as string
- pos_x – x_coordinate as float
- pos_y – y_coordinate as float
- color – color of the text (tuple or hex)
- font – QFont for the text
-
set_graph_properties
(theTrace)[source]¶ This function is automatically called on creation of the graph
-
set_lims
(xlim, ylim)[source]¶ Set limits of the graphs, xlim or ylim = [val_low, val_high]. Or None.
-
get_trace
(idTrace) → optimeed.visualize.graphs.traceVisual.TraceVisual[source]¶ Return the
TraceVisual
correspondong to the index idTrace
-
linkXToGraph
(graph)[source]¶ Link the axis of the current graph to an other
GraphVisual
-