traceVisual
¶
Module Contents¶
-
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
(self)[source]¶ Get base symbol configured for this trace, return str of the symbol (e.g. ‘o’)
-
get_symbol
(self, 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
(self, size)[source]¶ Get actual brushes for the trace (=symbol filling). return a list which maps each points to a symbol brush
-
set_brush
(self, 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
(self, 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
(self, list_indexPoint, list_newbrush)[source]¶ Same as
set_brush()
but by taking a list as input
-
get_symbolPens
(self, size)[source]¶ Get actual symbol pens for the trace (=symbol outline). return a list which maps each points to a symbol pen
-
set_symbolPen
(self, 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
(self, list_indexPoint, list_newpens)[source]¶ Same as
set_symbolPen()
but by taking a list as input
-
class