traceVisual
¶
Module Contents¶
Classes¶
Functions¶
Attributes¶
-
default_colormap
¶
-
class
TraceVisual
(theData, theWGPlot, highlight_last)[source]¶ Bases:
PyQt5.QtCore.QObject
Defines a trace in a graph.
-
class
_ModifiedPaintElem
[source]¶ Hidden class to manage brushes or pens
-
signal_must_update
¶
-
get_base_symbol
()[source]¶ Get base symbol configured for this trace, return str of the symbol (e.g. ‘o’)
-
get_symbol
(size)[source]¶ Get actual symbols for the trace. If the symbols have been modified: return a list which maps each points to a symbol. Otherwise: return :meth:TraceVisual.get_base_symbol()
-
get_brushes
(size)[source]¶ Get actual brushes for the trace (=symbol filling). return a list which maps each points to a symbol brush
-
set_brush
(indexPoint, newbrush, update=True)[source]¶ Set the symbol brush for a specific point:
Parameters: - indexPoint – Index of the point (in the graph) to modify
- newbrush – either QBrush or tuple (r, g, b) of the new brush
- update – if True, update the trace afterwards. This is slow operation.
-
set_symbol
(indexPoint, newSymbol, update=True)[source]¶ Set the symbol shape for a specific point:
Parameters: - indexPoint – Index of the point (in the graph) to modify
- newSymbol – string of the new symbol (e.g.: ‘o’)
- update – if True, update the trace afterwards. This is slow operation.
-
set_brushes
(list_indexPoint, list_newbrush, update=True)[source]¶ Same as
set_brush()
but by taking a list as input
-
reset_brushes
(list_indexPoint, update=True)[source]¶ Same as
reset_brush()
but by taking a list as input
-
get_symbolPens
(size)[source]¶ Get actual symbol pens for the trace (=symbol outline). return a list which maps each points to a symbol pen
-
set_symbolPen
(indexPoint, newPen, update=True)[source]¶ Set the symbol shape for a specific point:
Parameters: - indexPoint – Index of the point (in the graph) to modify
- newPen – QPen item or tuple of the color (r,g,b)
- update – if True, update the trace afterwards. This is slow operation.
-
set_symbolPens
(list_indexPoint, list_newpens, update=True)[source]¶ Same as
set_symbolPen()
but by taking a list as input
-
reset_symbolPens
(list_indexPoint, update=True)[source]¶ Same as
reset_symbolPen()
but by taking a list as input
-
class