CPlotView:Class Description
The CPlotView class displays 1-dimensional data as a plot. The CPlotView class leverages the richness and power of the Mira Plot Window and also can operate on existing Plot windows you attach to the script. Point data can be plotted from the following sources:
Construction |
Object = CPlotView:new() |
Destruction |
Object:delete() |
Creates a new instance of a CPlotView object. |
|
Deletes the CPlotView object. |
|
Attaches the top-most window (a Plot window) to the script and creates a new CPlotView object for it. |
|
Retrieves the pointer to the Mira plot window attached to this CPlotView instance. |
These methods manipulate an internal data array that holds points for plotting. The data array holds point data for x,y coordinates and optional errorbars.
Adds an x,y pair and optional error bars to the data array. |
|
Returns the number of points in the data array. |
|
Empties all point data from the data array. |
|
Returns the index of the point in the data array nearest an x,y. |
|
Returns the x value of a point. |
|
Returns the y value of a point. |
|
Returns the x errorbar value of a point. |
|
Returns the y errorbar value of a point. |
|
Deletes a point from the data array. |
These methods plot the class data matrix into a new window, append to an existing plot, or plot it as a new series in an existing window.
Creates a plot from points Added to the the data array. |
|
Adds the current series in an existing plot window into the class data matrix. |
|
Adds the class data matrix to an existing plot window as a new plot series. |
These methods work with an external CMatrix as the data source for plotting. Each row of the matrix defines a different plot series. Within a row, each (column,value) pair defines an (x,y) value to be plotted. Note that the x value (or "column" is integral; to plot arbitrary x,y points, use Add, PlotPoints, and AddSeries.
Appends a range or matrix rows to an existing plot as symbols. |
|
Appends a range of matrix rows to an existing plot as lines. |
|
Creates a scatter plot of all rows in a matrix. |
|
Creates a line plot of all rows in a matrix. |
|
Creates a multi-series scatter plot from a range of rows in a matrix. |
|
Creates a multi-series line plot from a range of rows in a matrix. |
These commands create plot data from the columns or rows of images and displayed images.
Plots a column from a CImage. |
|
Plots a row from a CImage. |
|
Plots the column at the center of the image cursor for images displayed in a CImageView. |
|
Plots the averaged column inside the image cursor for images displayed in a CImageView. |
|
Plots all columns inside the image cursor for images displayed in a CImageView. |
|
Plots the row at the center of the image cursor for images displayed in a CImageView. |
|
Plots the averaged row inside the image cursor for images displayed in a CImageView. |
|
Plots all rows inside the image cursor for images displayed in a CImageView. |
These methods work with the plot series of the plot window.
Returns the number of plot series. |
|
Returns the number of plotted points in a plot series. |
|
Returns the index of the current series. |
|
Sets the index of the current series. |
|
Retrieves the caption for a plot series. |
|
Sets a description for a plot series. |
|
Rereieves the description from a plot series. |
|
Retrieves the series display mode used by the plot window. |