Curves classes¶
-
class
pymeasure.display.curves.
BufferCurve
(errors=False, **kwargs)¶ Bases:
pyqtgraph.graphicsItems.PlotDataItem.PlotDataItem
Creates a curve based on a predefined buffer size and allows data to be added dynamically, in additon to supporting error bars
-
append
(x, y, xError=None, yError=None)¶ Appends data to the curve with optional errors
-
prepare
(size, dtype=<class 'numpy.float32'>)¶ Prepares the buffer based on its size, data type
-
-
class
pymeasure.display.curves.
Crosshairs
(plot, pen=None)¶ Bases:
PyQt4.QtCore.QObject
Attaches crosshairs to the a plot and provides a signal with the x and y graph coordinates
-
mouseMoved
(event=None)¶ Updates the mouse position upon mouse movement
-
update
()¶ Updates the mouse position based on the data in the plot. For dynamic plots, this is called each time the data changes to ensure the x and y values correspond to those on the display.
-
-
class
pymeasure.display.curves.
ResultsCurve
(results, x, y, xerr=None, yerr=None, force_reload=False, **kwargs)¶ Bases:
pyqtgraph.graphicsItems.PlotDataItem.PlotDataItem
Creates a curve loaded dynamically from a file through the Results object and supports error bars. The data can be forced to fully reload on each update, useful for cases when the data is changing across the full file instead of just appending.
-
update
()¶ Updates the data by polling the results
-