Plotting Funtions
General information
Plotting of raw experimental data is available via Liveplot library modified according to the aims of the project. The general idea of the Liveplot is a possibitily to see your data as it comes in to your script, with minimal effort using an appropriate shell to cover verbose syntax.
The Liveplot provides several possibilities for plotting 1D and 2D data. For raw experimental data plotting mainly four of them are applicable. An additional customizability has been added to these functions in comparison with the original Liveplot library. The functions are the following:
- plot_1d(*args, **kargs)
- plot_2d(*args, **kargs)
- text_label(‘label’, DynamicValue)
- plot_remove(‘name_of_plot’)
GUI features
The Liveplot tab the following additional features in the Current Plots dock:
- delete a selected dock with graphs;
- open 1d data in csv multi-column format and plot it in a new graph dock;
- open 2d data in csv format and plot it in a new graph dock.
These features are available in the menu that can be opened by a right-click in the Current Plots dock area.
The graph docks have the following additional features:
- delete the selected curve from the graph dock;
- vertically shift the selected curve from the graph dock;
- open 1d data in csv multi-column format and plot it in this graph dock;
- save 2d data from the displayed contour plot.
These features are available in the Plot Options menu of pyqtgraph that can be opened by a right-click in the graph dock area.
- double-click the left mouse button to display / hide the cross-hair widget (for 1D plots) or the cross-section widget (for 2D plots);
- click the middle mouse button to lock the cross-hair or cross-section widget in its current position.