PlotView
Introduction
The PlotView gives an interface to plot several sets of data. The data given needs to be in the form of PlotData. Via the menu you can toggle error-weight or error-bars to be shown. Several different options are available for the display of errors including clamping. A snapshot of the PlotView can be printed or saved as a PostScript?/PDF file. From a PlotData-manager window you can export, import or remove PlotData. When the mouse is on a datapoint it's x and y will be visible in the statusbar. If choosen in addition the datapoint's x and y error as well as any extra information will be shown in an info-window.
Python Interface
The PlotView can be created via a Python interface. The following python code creates it.
pv = gui.CreatePlotView()
The PlotView instance pv provides the following methods:
- AddData(plotdata)
- add a PlotData to the PlotView
- SetSymbolSize(int)
- set the symbolsize for all datapoints
- SetErrorWeightScheme(double min_weight, double max_weight, double min_pixel, double max_pixel, int type)
- corresponds to the gui options for ErrorWeight, type indicates relative or absolute, 0 or 1
- SetErrorBarScale(double)
- set the scaling factor for the errorbars
- SetErrorBarClamping(bool)
- set if errorbars should be clamped
- SetErrorBarMaxValue(int)
- set the value for clamping
Examples
- minimal
- adding plotdata
- adding more than one plotdata
- using different y-axis
- drawing plotdata as lines
- showing y-axis and y-axis values
- using the infowindow
- displaying error
- print to file/printer
- plotdata-manager import/export
back to GUI Overview?
Attachments
- plotview.jpg (18.5 kB) - added by johan on 08/02/06 14:29:29.
