

Public Member Functions | |
| def | __init__ |
| def | __del__ |
| def | setPlotTitle |
| set the plot title | |
| def | setAxesProperties |
| Using the data from the dictionary: set axes properties: xname, yname, title. | |
| def | setAxesRanges |
| set xmin, xmax, ymin, ymax using self.plotDict | |
| def | parseArguments |
| parse the arguments | |
| def | sizeHint |
| def | minimumSizeHint |
| def | resizeEvent |
| def | mouseReleaseEvent |
| def | onclick |
| def | keyPressEvent |
| Handle key presses on the plot window. | |
| def | onmove |
| def | saveFig |
| save a plot to the disk (wrapper for the savefig function) | |
| def | zoom |
| def | svenPlot |
| create a svenPlot (interactive request) | |
| def | hydroSvenPlots |
| Create 4 Svenzograms: density, pressure, vx, spec_ener. | |
| def | partProps |
| def | getBoxLimits |
| Find and adjust the select box limits to be irrespective of the way we draw the box. | |
| def | rePlotAxes |
| Function to do a replot when data is unchanged, axes have changed. | |
| def | rePlot |
| Function to do a replot of a plot. | |
| def | toggleLiveStatus |
| Either toggle the live status or set it (to a bool). | |
| def | closeEvent |
| Reimplement the closeEvent to disconnect known signals from Python slots. | |
| def | startLiveStatus |
| Set the live status to true. | |
| def | endLiveStatus |
| Switches off the live status of a plot. | |
| def | setWindowTitle |
| Give a proper title to the MDI window harbouring self. | |
| def | setMdiWindow |
| Store the mdi window the plot is in. | |
| def | settingsWindow |
| def | setSettingsWindow |
| def | loadPlotxpfSettings |
| Load plot settings into the treeview. | |
| def | applyPlotxpfSettings |
| Store plot settings from the treeview in the plot dictionary. | |
| def | attachPythonScript |
| Attach a python script to this plot. | |
| def | executePythonScript |
| Execute the python script attached to this plot. | |
Public Attributes | |
| plotDict | |
| fig | |
| axes | |
| liveStatus | |
| menu | |
| menu2 | |
| paint | |
| xpfwin | |
| scalex | |
| scaley | |
| number | |
| type | |
| binname | |
| mdiWindow | |
).
| def plotmain::MyMplCanvas::applyPlotxpfSettings | ( | self | ) |
Store plot settings from the treeview in the plot dictionary.
Apply them to the plot
| def plotmain::MyMplCanvas::closeEvent | ( | self, | ||
| qevent | ||||
| ) |
Reimplement the closeEvent to disconnect known signals from Python slots.
Qt only destroys the C++ part of a widget so the signal-slot connection is not automatically terminated.
Note that there is a problem with the current implementation: when the Options widget is closed and we then try to close a plot widget disconnecting the fileWasRead signal from the Options widget gives a RuntimeError, as the option widget (at least the C++ part) has been destroyed.
| def plotmain::MyMplCanvas::endLiveStatus | ( | self | ) |
Switches off the live status of a plot.
Does nothing else (e.g. window title is not updated.)
| def plotmain::MyMplCanvas::rePlot | ( | self | ) |
Function to do a replot of a plot.
Uses the settings used to make the plot to redraw (data is recalculated so if a different file was read the plot content will change)
| def plotmain::MyMplCanvas::rePlotAxes | ( | self | ) |
Function to do a replot when data is unchanged, axes have changed.
to do a replot with changed data: use rePlot the plotDict is used to set the new axes (e.g. xname, ...)
| def plotmain::MyMplCanvas::saveFig | ( | self, | ||
basename = "", |
||||
figformat = 'png' | ||||
| ) |
save a plot to the disk (wrapper for the savefig function)
Call this function to save a figure. If necessary it displays a dialog Requesting the name of the file
| def plotmain::MyMplCanvas::setMdiWindow | ( | self, | ||
| mdiWindow | ||||
| ) |
Store the mdi window the plot is in.
Make the necessary signal/slot connections
1.5.8