vacca.plot module¶
Plots in VACCA have several setups:
- ApplyConfig is disabled, to avoid previous configs to override trend behavior
- Default Trend length has several hours instead of seconds.
- Archiving is still disabled, but also Scale change warnings when re-enabled.
Classes¶
Functions¶
pickPlotPoint¶
- vacca.plot.pickPlotPoint(self, pos, scope=20, showMarker=True, targetCurveNames=None, xlabels=None)[source]¶
Finds the pyxel-wise closest data point to the given position. The valid search space is constrained by the scope and targetCurveNames parameters.
Parameters: - pos – (Qt.QPoint or Qt.QPolygon) the position around which to look for a data point. The position should be passed as a Qt.QPoint (if a Qt.QPolygon is given, the first point of the polygon is used). The position is expected in pixel units, with (0,0) being the top-left corner of the plot canvas.
- scope – (int) defines the area around the given position to be considered when searching for data points. A data point is considered within scope if its manhattan distance to position (in pixels) is less than the value of the scope parameter. (default=20)
- showMarker – (bool) If True, a marker will be put on the picked data point. (default=True)
- targetCurveNames – (sequence<str>) the names of the curves to be searched. If None passed, all curves will be searched
Returns: (tuple<Qt.QPointF,str,int> or tuple<None,None,None>) if a point was picked within the scope, it returns a tuple containing the picked point (as a Qt.QPointF), the curve name and the index of the picked point in the curve data. If no point was found within the scope, it returns None,None,None
setup_profile_plot¶
setup_pressure_trend¶
- class vacca.plot.PressureTrend(parent=None, designMode=False)[source]
Bases: taurus.qt.qtgui.plot.taurustrend.TaurusTrend
- class vacca.plot.VaccaProfilePlot(*args, **kwargs)[source]
Bases: fandango.qt.DraggableQtKlass
- class vacca.plot.VaccaTrend(parent=None, designMode=False)[source]
Bases: taurus.qt.qtgui.plot.taurustrend.TaurusTrend
- vacca.plot.pickPlotPoint(self, pos, scope=20, showMarker=True, targetCurveNames=None, xlabels=None)[source]
Finds the pyxel-wise closest data point to the given position. The valid search space is constrained by the scope and targetCurveNames parameters.
Parameters: - pos – (Qt.QPoint or Qt.QPolygon) the position around which to look for a data point. The position should be passed as a Qt.QPoint (if a Qt.QPolygon is given, the first point of the polygon is used). The position is expected in pixel units, with (0,0) being the top-left corner of the plot canvas.
- scope – (int) defines the area around the given position to be considered when searching for data points. A data point is considered within scope if its manhattan distance to position (in pixels) is less than the value of the scope parameter. (default=20)
- showMarker – (bool) If True, a marker will be put on the picked data point. (default=True)
- targetCurveNames – (sequence<str>) the names of the curves to be searched. If None passed, all curves will be searched
Returns: (tuple<Qt.QPointF,str,int> or tuple<None,None,None>) if a point was picked within the scope, it returns a tuple containing the picked point (as a Qt.QPointF), the curve name and the index of the picked point in the curve data. If no point was found within the scope, it returns None,None,None
- vacca.plot.setup_pressure_trend(tt, log=True, length=43200)[source]
- vacca.plot.setup_profile_plot(tp, composer, picker=True)[source]
This method configures a tau plot to show pressure/temperature profiles