Curves classes
- class pymeasure.display.curves.BufferCurve(**kwargs)
Bases:
PlotDataItem
Creates a curve based on a predefined buffer size and allows data to be added dynamically.
- append(x, y)
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:
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, force_reload=False, wdg=None, **kwargs)
Bases:
PlotDataItem
Creates a curve loaded dynamically from a file through the Results object. 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_data()
Updates the data by polling the results
- class pymeasure.display.curves.ResultsImage(results, x, y, z, force_reload=False, wdg=None, **kwargs)
Bases:
ImageItem
Creates an image loaded dynamically from a file through the Results object.
- colormap(x)
Return mapped color as 0.0-1.0 floats RGBA
- find_img_index(x, y)
Finds the integer image indices corresponding to the closest x and y points of the data given some x and y data.
- round_up(x)
Convenience function since numpy rounds to even