casa
5.7.0-16
|
SimplePlotter is a concrete class that uses the abstract plotting classes to perform common tasks. More...
#include <SimplePlotter.h>
Public Member Functions | |
SimplePlotter (PlotFactoryPtr factory) | |
Constructor that takes a factory to build plotting objects. More... | |
~SimplePlotter () | |
Destructor. More... | |
PlotFactoryPtr | getFactory () |
Accessor methods. More... | |
PlotterPtr | getPlotter () |
Returns the Plotter. More... | |
PlotCanvasPtr | getCanvas () |
Returns the PlotCanvas. More... | |
PlotLinePtr | getLine () |
Returns the current PlotLine used to draw the plots. More... | |
PlotSymbolPtr | getSymbol () |
Returns the current PlotSymbol used for the plots and points. More... | |
PlotAreaFillPtr | getAreaFill () |
Returns the current PlotAreaFill used for shapes, histograms, etc. More... | |
int | execLoop () |
Execution methods. More... | |
void | holdDrawing () |
Holds/Releases drawing on the canvas. More... | |
void | releaseDrawing () |
void | setWindowTitle (const casacore::String &windowTitle) |
Plotter customization. More... | |
void | setCanvasTitle (const casacore::String &canvasTitle) |
Sets the title of the canvas to the given. More... | |
void | setAxesLabels (const casacore::String &xLabel, const casacore::String &yLabel) |
Sets the X_BOTTOM and Y_LEFT axes labels to the given. More... | |
void | showCartesianAxes (bool show=true) |
Show/hide Cartesian axes. More... | |
void | setXAxisRange (double from, double to) |
Implies setAxesAutoRescale(false) More... | |
void | setYAxisRange (double from, double to) |
Implies setAxesAutoRescale(false) More... | |
void | setAxesAutoRescale (bool on=true) |
When future items are added to the canvas, automatically rescale the axes to show all items. More... | |
void | rescaleAxes () |
Automatically rescale the axes to show all items on the canvas. More... | |
void | showLines (bool showLines=true) |
Plot customization. More... | |
void | showSymbols (bool showSymbols=true) |
Turns symbols on or off for future plots and points. More... | |
void | setLine (const casacore::String &color, PlotLine::Style style=PlotLine::SOLID, double width=1.0) |
Set the line for future plots to the given characteristics. More... | |
void | setSymbol (PlotSymbol::Symbol symbol, const casacore::String &color="blue", double size=5, bool outline=true) |
Set the symbol for future plots and points to the given characteristics. More... | |
void | setAreaFill (const casacore::String &color, PlotAreaFill::Pattern pattern=PlotAreaFill::FILL) |
Set the area fill for future histograms, shapes, etc. More... | |
ScatterPlotPtr | plotxy (double *&x, double *&y, unsigned int n, bool overplot=true) |
Plotting methods. More... | |
ScatterPlotPtr | plotxy (float *&x, float *&y, unsigned int n, bool overplot=true) |
ScatterPlotPtr | plotxy (int *&x, int *&y, unsigned int n, bool overplot=true) |
ScatterPlotPtr | plotxy (casacore::Vector< double > &x, casacore::Vector< double > &y, bool overplot=true) |
ScatterPlotPtr | plotxy (casacore::Vector< float > &x, casacore::Vector< float > &y, bool overplot=true) |
ScatterPlotPtr | plotxy (casacore::Vector< int > &x, casacore::Vector< int > &y, bool overplot=true) |
ScatterPlotPtr | plotxy (PlotPointDataPtr data, bool overplot=true) |
ScatterPlotPtr | ploty (double *&y, unsigned int n, bool overplot=true) |
ScatterPlotPtr | ploty (float *&y, unsigned int n, bool overplot=true) |
ScatterPlotPtr | ploty (int *&y, unsigned int n, bool overplot=true) |
ScatterPlotPtr | ploty (casacore::Vector< double > &y, bool overplot=true) |
ScatterPlotPtr | ploty (casacore::Vector< float > &y, bool overplot=true) |
ScatterPlotPtr | ploty (casacore::Vector< int > &y, bool overplot=true) |
ScatterPlotPtr | ploty (PlotPointDataPtr data, bool overplot=true) |
BarPlotPtr | barPlot (double *&x, double *&y, unsigned int n, bool overplot=false) |
Display a bar plot for the given data, using the current line and area fill. More... | |
BarPlotPtr | barPlot (float *&x, float *&y, unsigned int n, bool overplot=false) |
BarPlotPtr | barPlot (int *&x, int *&y, unsigned int n, bool overplot=false) |
BarPlotPtr | barPlot (casacore::Vector< double > &x, casacore::Vector< double > &y, bool overplot=false) |
BarPlotPtr | barPlot (casacore::Vector< float > &x, casacore::Vector< float > &y, bool overplot=false) |
BarPlotPtr | barPlot (casacore::Vector< int > &x, casacore::Vector< int > &y, bool overplot=false) |
BarPlotPtr | barPlot (PlotPointDataPtr data, bool overplot=false) |
BarPlotPtr | histogramPlot (double *&data, unsigned int n, unsigned int numBins, bool overplot=false) |
Display a histogram for the given data in the given number of bins, using the current line and area fill. More... | |
BarPlotPtr | histogramPlot (float *&data, unsigned int n, unsigned int numBins, bool overplot=false) |
BarPlotPtr | histogramPlot (int *&data, unsigned int n, unsigned int numBins, bool overplot=false) |
BarPlotPtr | histogramPlot (casacore::Vector< double > &data, unsigned int numBins, bool overplot=false) |
BarPlotPtr | histogramPlot (casacore::Vector< float > &data, unsigned int numBins, bool overplot=false) |
BarPlotPtr | histogramPlot (casacore::Vector< int > &data, unsigned int numBins, bool overplot=false) |
BarPlotPtr | histogramPlot (PlotSingleDataPtr data, unsigned int numBins, bool overplot=false) |
RasterPlotPtr | rasterPlot (casacore::Matrix< double > &data, bool overplot=false) |
Display a raster or contour plot for the given data, using the current line for the contours if applicable. More... | |
RasterPlotPtr | rasterPlot (casacore::Matrix< float > &data, bool overplot=false) |
RasterPlotPtr | rasterPlot (casacore::Matrix< int > &data, bool overplot=false) |
RasterPlotPtr | rasterPlot (casacore::Matrix< casacore::uInt > &data, bool overplot=false) |
RasterPlotPtr | rasterPlot (casacore::Matrix< double > &data, double fromX, double toX, double fromY, double toY, bool overplot=false) |
RasterPlotPtr | rasterPlot (casacore::Matrix< float > &data, double fromX, double toX, double fromY, double toY, bool overplot=false) |
RasterPlotPtr | rasterPlot (casacore::Matrix< int > &data, double fromX, double toX, double fromY, double toY, bool overplot=false) |
RasterPlotPtr | rasterPlot (casacore::Matrix< casacore::uInt > &data, double fromX, double toX, double fromY, double toY, bool overplot=false) |
RasterPlotPtr | rasterPlot (PlotRasterDataPtr data, bool overplot=false) |
RasterPlotPtr | contourPlot (casacore::Matrix< double > &data, casacore::Vector< double > &contours, bool overplot=false) |
RasterPlotPtr | contourPlot (casacore::Matrix< float > &data, casacore::Vector< float > &contours, bool overplot=false) |
RasterPlotPtr | contourPlot (casacore::Matrix< int > &data, casacore::Vector< int > &contours, bool overplot=false) |
RasterPlotPtr | contourPlot (casacore::Matrix< casacore::uInt > &data, casacore::Vector< casacore::uInt > &contours, bool overplot=false) |
RasterPlotPtr | contourPlot (casacore::Matrix< double > &data, double fromX, double toX, double fromY, double toY, casacore::Vector< double > &contours, bool overplot=false) |
RasterPlotPtr | contourPlot (casacore::Matrix< float > &data, double fromX, double toX, double fromY, double toY, casacore::Vector< float > &contours, bool overplot=false) |
RasterPlotPtr | contourPlot (casacore::Matrix< int > &data, double fromX, double toX, double fromY, double toY, casacore::Vector< int > &contours, bool overplot=false) |
RasterPlotPtr | contourPlot (casacore::Matrix< casacore::uInt > &data, double fromX, double toX, double fromY, double toY, casacore::Vector< casacore::uInt > &contours, bool overplot=false) |
RasterPlotPtr | contourPlot (PlotRasterDataPtr data, std::vector< double > &contours, bool overplot=false) |
RasterPlotPtr | spectrogram (casacore::Matrix< double > &data, bool overplt=false) |
RasterPlotPtr | spectrogram (casacore::Matrix< float > &data, bool overplot=false) |
RasterPlotPtr | spectrogram (casacore::Matrix< int > &data, bool overplot=false) |
RasterPlotPtr | spectrogram (casacore::Matrix< casacore::uInt > &data, bool overplot=false) |
RasterPlotPtr | spectrogram (casacore::Matrix< double > &data, double fromX, double toX, double fromY, double toY, bool overplot=false) |
RasterPlotPtr | spectrogram (casacore::Matrix< float > &data, double fromX, double toX, double fromY, double toY, bool overplot=false) |
RasterPlotPtr | spectrogram (casacore::Matrix< int > &data, double fromX, double toX, double fromY, double toY, bool overplot=false) |
RasterPlotPtr | spectrogram (casacore::Matrix< casacore::uInt > &data, double fromX, double toX, double fromY, double toY, bool overplot=false) |
RasterPlotPtr | spectrogram (PlotRasterDataPtr data, bool overplot=false) |
RasterPlotPtr | spectrogram (casacore::Matrix< double > &d, casacore::Vector< double > &contours, bool overplot=false) |
RasterPlotPtr | spectrogram (casacore::Matrix< float > &data, casacore::Vector< float > &contours, bool overplot=false) |
RasterPlotPtr | spectrogram (casacore::Matrix< int > &data, casacore::Vector< int > &contours, bool overplot=false) |
RasterPlotPtr | spectrogram (casacore::Matrix< casacore::uInt > &data, casacore::Vector< casacore::uInt > &contours, bool overplot=false) |
RasterPlotPtr | spectrogram (casacore::Matrix< double > &d, double fromX, double toX, double fromY, double toY, casacore::Vector< double > &contours, bool overplot=false) |
RasterPlotPtr | spectrogram (casacore::Matrix< float > &data, double fromX, double toX, double fromY, double toY, casacore::Vector< float > &contours, bool overplot=false) |
RasterPlotPtr | spectrogram (casacore::Matrix< int > &data, double fromX, double toX, double fromY, double toY, casacore::Vector< int > &contours, bool overplot=false) |
RasterPlotPtr | spectrogram (casacore::Matrix< casacore::uInt > &data, double fromX, double toX, double fromY, double toY, casacore::Vector< casacore::uInt > &contours, bool overplot=false) |
RasterPlotPtr | spectrogram (PlotRasterDataPtr data, std::vector< double > &contours, bool overplot=false) |
PlotPointPtr | plotPoint (double x, double y) |
Plot a point at the given location, using the current symbol. More... | |
PlotAnnotationPtr | annotation (double x, double y, const casacore::String &text) |
Shapes, Annotations, etc. More... | |
PlotShapeRectanglePtr | rectangle (double left, double top, double right, double bottom) |
Draw a rectangle from the given upper left point to the given lower right point. More... | |
PlotShapeEllipsePtr | ellipse (double centerX, double centerY, double xRadius, double yRadius) |
Draw an ellipse with the given point as the center and the given x and y radii. More... | |
PlotShapeEllipsePtr | ellipse (double x, double y, double radius) |
PlotShapeLinePtr | xLine (double value) |
Draw a line at the given x value. More... | |
PlotShapeLinePtr | yLine (double value) |
Draw a line at the given y value. More... | |
PlotShapeArrowPtr | arrow (double xFrom, double yFrom, double xTo, double yTo) |
Draw an arrow from the given point to the given point. More... | |
PlotShapeArrowPtr | lineSegment (double xFrom, double yFrom, double xTo, double yTo) |
Draw a line segment from the given point to the given point. More... | |
void | clear () |
Clearing Methods. More... | |
void | clearPoints () |
Clear just the points that have been accumulated using plotPoint calls. More... | |
void | showDefaultHandTools (bool show=true) |
Interaction Methods. More... | |
void | showDefaultExportTools (bool show=true) |
Show or hide default "export tools" panel - i.e., saving to a file. More... | |
std::vector< PlotRegion > | allSelectedRegions () |
Returns all selected regions in the canvas' selected region list. More... | |
void | clearSelectedRegions () |
Clears the canvas' list of selected regions. More... | |
casacore::String | fileChooserDialog (const casacore::String &title="File Chooser", const casacore::String &directory="") |
Export Methods. More... | |
bool | exportPDF (const casacore::String &location, bool highQuality=false, int dpi=-1) |
Exports the plotter to a PDF file at the given location. More... | |
bool | exportPS (const casacore::String &location, bool highQuality=false, int dpi=-1) |
Exports the plotter to a PS file at the given location. More... | |
bool | exportJPG (const casacore::String &location, bool highQuality=false, int width=-1, int height=-1) |
Exports the plotter to a JPG file at the given location. More... | |
bool | exportPNG (const casacore::String &location, bool highQuality=false, int width=-1, int height=-1) |
Exports the plotter to a PNG file at the given location. More... | |
bool | exportToFile (const PlotExportFormat &format) |
Exports the plotter using the given format. More... | |
Private Attributes | |
PlotFactoryPtr | m_factory |
Factory. More... | |
PlotterPtr | m_plotter |
Plotter, with single canvas. More... | |
PlotCanvasPtr | m_canvas |
Canvas. More... | |
PlotStandardMouseToolGroupPtr | m_mouseTools |
Mouse tools. More... | |
std::vector< PlotPointPtr > | m_accumulatedPoints |
Points accumulated using plotPoint calls. More... | |
PlotLinePtr | m_line |
Line for future plots. More... | |
PlotSymbolPtr | m_symbol |
Symbol for future plots and points. More... | |
PlotAreaFillPtr | m_areaFill |
Area fill for future histograms, shapes, etc. More... | |
SimplePlotter is a concrete class that uses the abstract plotting classes to perform common tasks.
SimplePlotter is meant for users who won't need any advanced or complicated customization or specialized data types.
Definition at line 39 of file SimplePlotter.h.
casa::SimplePlotter::SimplePlotter | ( | PlotFactoryPtr | factory | ) |
Constructor that takes a factory to build plotting objects.
casa::SimplePlotter::~SimplePlotter | ( | ) |
Destructor.
std::vector<PlotRegion> casa::SimplePlotter::allSelectedRegions | ( | ) |
Returns all selected regions in the canvas' selected region list.
This list will contain all user-selected regions since either its construction or the last call to clearSelectedRegions().
PlotAnnotationPtr casa::SimplePlotter::annotation | ( | double | x, |
double | y, | ||
const casacore::String & | text | ||
) |
Shapes, Annotations, etc.
Draw an annotation (text) on the canvas at the given point.
PlotShapeArrowPtr casa::SimplePlotter::arrow | ( | double | xFrom, |
double | yFrom, | ||
double | xTo, | ||
double | yTo | ||
) |
Draw an arrow from the given point to the given point.
BarPlotPtr casa::SimplePlotter::barPlot | ( | double *& | x, |
double *& | y, | ||
unsigned int | n, | ||
bool | overplot = false |
||
) |
Display a bar plot for the given data, using the current line and area fill.
BarPlotPtr casa::SimplePlotter::barPlot | ( | float *& | x, |
float *& | y, | ||
unsigned int | n, | ||
bool | overplot = false |
||
) |
BarPlotPtr casa::SimplePlotter::barPlot | ( | int *& | x, |
int *& | y, | ||
unsigned int | n, | ||
bool | overplot = false |
||
) |
BarPlotPtr casa::SimplePlotter::barPlot | ( | casacore::Vector< double > & | x, |
casacore::Vector< double > & | y, | ||
bool | overplot = false |
||
) |
BarPlotPtr casa::SimplePlotter::barPlot | ( | casacore::Vector< float > & | x, |
casacore::Vector< float > & | y, | ||
bool | overplot = false |
||
) |
BarPlotPtr casa::SimplePlotter::barPlot | ( | casacore::Vector< int > & | x, |
casacore::Vector< int > & | y, | ||
bool | overplot = false |
||
) |
BarPlotPtr casa::SimplePlotter::barPlot | ( | PlotPointDataPtr | data, |
bool | overplot = false |
||
) |
void casa::SimplePlotter::clear | ( | ) |
Clearing Methods.
Clear all items currently on the canvas.
void casa::SimplePlotter::clearPoints | ( | ) |
Clear just the points that have been accumulated using plotPoint calls.
void casa::SimplePlotter::clearSelectedRegions | ( | ) |
Clears the canvas' list of selected regions.
RasterPlotPtr casa::SimplePlotter::contourPlot | ( | casacore::Matrix< double > & | data, |
casacore::Vector< double > & | contours, | ||
bool | overplot = false |
||
) |
RasterPlotPtr casa::SimplePlotter::contourPlot | ( | casacore::Matrix< float > & | data, |
casacore::Vector< float > & | contours, | ||
bool | overplot = false |
||
) |
RasterPlotPtr casa::SimplePlotter::contourPlot | ( | casacore::Matrix< int > & | data, |
casacore::Vector< int > & | contours, | ||
bool | overplot = false |
||
) |
RasterPlotPtr casa::SimplePlotter::contourPlot | ( | casacore::Matrix< casacore::uInt > & | data, |
casacore::Vector< casacore::uInt > & | contours, | ||
bool | overplot = false |
||
) |
RasterPlotPtr casa::SimplePlotter::contourPlot | ( | casacore::Matrix< double > & | data, |
double | fromX, | ||
double | toX, | ||
double | fromY, | ||
double | toY, | ||
casacore::Vector< double > & | contours, | ||
bool | overplot = false |
||
) |
RasterPlotPtr casa::SimplePlotter::contourPlot | ( | casacore::Matrix< float > & | data, |
double | fromX, | ||
double | toX, | ||
double | fromY, | ||
double | toY, | ||
casacore::Vector< float > & | contours, | ||
bool | overplot = false |
||
) |
RasterPlotPtr casa::SimplePlotter::contourPlot | ( | casacore::Matrix< int > & | data, |
double | fromX, | ||
double | toX, | ||
double | fromY, | ||
double | toY, | ||
casacore::Vector< int > & | contours, | ||
bool | overplot = false |
||
) |
RasterPlotPtr casa::SimplePlotter::contourPlot | ( | casacore::Matrix< casacore::uInt > & | data, |
double | fromX, | ||
double | toX, | ||
double | fromY, | ||
double | toY, | ||
casacore::Vector< casacore::uInt > & | contours, | ||
bool | overplot = false |
||
) |
RasterPlotPtr casa::SimplePlotter::contourPlot | ( | PlotRasterDataPtr | data, |
std::vector< double > & | contours, | ||
bool | overplot = false |
||
) |
PlotShapeEllipsePtr casa::SimplePlotter::ellipse | ( | double | centerX, |
double | centerY, | ||
double | xRadius, | ||
double | yRadius | ||
) |
Draw an ellipse with the given point as the center and the given x and y radii.
PlotShapeEllipsePtr casa::SimplePlotter::ellipse | ( | double | x, |
double | y, | ||
double | radius | ||
) |
int casa::SimplePlotter::execLoop | ( | ) |
Execution methods.
Enters the execution loop and returns the result.
bool casa::SimplePlotter::exportJPG | ( | const casacore::String & | location, |
bool | highQuality = false , |
||
int | width = -1 , |
||
int | height = -1 |
||
) |
Exports the plotter to a JPG file at the given location.
If highQuality is false, a screenshot-like export is used. Width and height of the image can be set.
bool casa::SimplePlotter::exportPDF | ( | const casacore::String & | location, |
bool | highQuality = false , |
||
int | dpi = -1 |
||
) |
Exports the plotter to a PDF file at the given location.
If highQuality is false, a screenshot-like export is used. Dots per inch can be set using dpi.
bool casa::SimplePlotter::exportPNG | ( | const casacore::String & | location, |
bool | highQuality = false , |
||
int | width = -1 , |
||
int | height = -1 |
||
) |
Exports the plotter to a PNG file at the given location.
If highQuality is false, a screenshot-like export is used. Width and height of the image can be set.
bool casa::SimplePlotter::exportPS | ( | const casacore::String & | location, |
bool | highQuality = false , |
||
int | dpi = -1 |
||
) |
Exports the plotter to a PS file at the given location.
If highQuality is false, a screenshot-like export is used. Dots per inch can be set using dpi.
bool casa::SimplePlotter::exportToFile | ( | const PlotExportFormat & | format | ) |
Exports the plotter using the given format.
casacore::String casa::SimplePlotter::fileChooserDialog | ( | const casacore::String & | title = "File Chooser" , |
const casacore::String & | directory = "" |
||
) |
Export Methods.
Show a file chooser dialog with the given optional window title and starting directory. Returns the absolute filename that the user selected, or an empty casacore::String if they pushed "Cancel".
|
inline |
Returns the current PlotAreaFill used for shapes, histograms, etc.
Definition at line 66 of file SimplePlotter.h.
References m_areaFill.
|
inline |
|
inline |
Accessor methods.
Returns the factory.
Definition at line 51 of file SimplePlotter.h.
References m_factory.
|
inline |
Returns the current PlotLine used to draw the plots.
Definition at line 60 of file SimplePlotter.h.
References m_line.
|
inline |
|
inline |
Returns the current PlotSymbol used for the plots and points.
Definition at line 63 of file SimplePlotter.h.
References m_symbol.
BarPlotPtr casa::SimplePlotter::histogramPlot | ( | double *& | data, |
unsigned int | n, | ||
unsigned int | numBins, | ||
bool | overplot = false |
||
) |
Display a histogram for the given data in the given number of bins, using the current line and area fill.
BarPlotPtr casa::SimplePlotter::histogramPlot | ( | float *& | data, |
unsigned int | n, | ||
unsigned int | numBins, | ||
bool | overplot = false |
||
) |
BarPlotPtr casa::SimplePlotter::histogramPlot | ( | int *& | data, |
unsigned int | n, | ||
unsigned int | numBins, | ||
bool | overplot = false |
||
) |
BarPlotPtr casa::SimplePlotter::histogramPlot | ( | casacore::Vector< double > & | data, |
unsigned int | numBins, | ||
bool | overplot = false |
||
) |
BarPlotPtr casa::SimplePlotter::histogramPlot | ( | casacore::Vector< float > & | data, |
unsigned int | numBins, | ||
bool | overplot = false |
||
) |
BarPlotPtr casa::SimplePlotter::histogramPlot | ( | casacore::Vector< int > & | data, |
unsigned int | numBins, | ||
bool | overplot = false |
||
) |
BarPlotPtr casa::SimplePlotter::histogramPlot | ( | PlotSingleDataPtr | data, |
unsigned int | numBins, | ||
bool | overplot = false |
||
) |
void casa::SimplePlotter::holdDrawing | ( | ) |
Holds/Releases drawing on the canvas.
Is NOT recursive.
PlotShapeArrowPtr casa::SimplePlotter::lineSegment | ( | double | xFrom, |
double | yFrom, | ||
double | xTo, | ||
double | yTo | ||
) |
Draw a line segment from the given point to the given point.
PlotPointPtr casa::SimplePlotter::plotPoint | ( | double | x, |
double | y | ||
) |
Plot a point at the given location, using the current symbol.
ScatterPlotPtr casa::SimplePlotter::plotxy | ( | double *& | x, |
double *& | y, | ||
unsigned int | n, | ||
bool | overplot = true |
||
) |
Plotting methods.
IMPORTANT: since the data given to the plotting methods is not copied (but rather a reference is used) it is important that the data not go out of scope while the plots are being used!
Plot the given points, using the current line and symbol.
ScatterPlotPtr casa::SimplePlotter::plotxy | ( | float *& | x, |
float *& | y, | ||
unsigned int | n, | ||
bool | overplot = true |
||
) |
ScatterPlotPtr casa::SimplePlotter::plotxy | ( | int *& | x, |
int *& | y, | ||
unsigned int | n, | ||
bool | overplot = true |
||
) |
ScatterPlotPtr casa::SimplePlotter::plotxy | ( | casacore::Vector< double > & | x, |
casacore::Vector< double > & | y, | ||
bool | overplot = true |
||
) |
ScatterPlotPtr casa::SimplePlotter::plotxy | ( | casacore::Vector< float > & | x, |
casacore::Vector< float > & | y, | ||
bool | overplot = true |
||
) |
ScatterPlotPtr casa::SimplePlotter::plotxy | ( | casacore::Vector< int > & | x, |
casacore::Vector< int > & | y, | ||
bool | overplot = true |
||
) |
ScatterPlotPtr casa::SimplePlotter::plotxy | ( | PlotPointDataPtr | data, |
bool | overplot = true |
||
) |
ScatterPlotPtr casa::SimplePlotter::ploty | ( | double *& | y, |
unsigned int | n, | ||
bool | overplot = true |
||
) |
ScatterPlotPtr casa::SimplePlotter::ploty | ( | float *& | y, |
unsigned int | n, | ||
bool | overplot = true |
||
) |
ScatterPlotPtr casa::SimplePlotter::ploty | ( | int *& | y, |
unsigned int | n, | ||
bool | overplot = true |
||
) |
ScatterPlotPtr casa::SimplePlotter::ploty | ( | casacore::Vector< double > & | y, |
bool | overplot = true |
||
) |
ScatterPlotPtr casa::SimplePlotter::ploty | ( | casacore::Vector< float > & | y, |
bool | overplot = true |
||
) |
ScatterPlotPtr casa::SimplePlotter::ploty | ( | casacore::Vector< int > & | y, |
bool | overplot = true |
||
) |
ScatterPlotPtr casa::SimplePlotter::ploty | ( | PlotPointDataPtr | data, |
bool | overplot = true |
||
) |
RasterPlotPtr casa::SimplePlotter::rasterPlot | ( | casacore::Matrix< double > & | data, |
bool | overplot = false |
||
) |
Display a raster or contour plot for the given data, using the current line for the contours if applicable.
RasterPlotPtr casa::SimplePlotter::rasterPlot | ( | casacore::Matrix< float > & | data, |
bool | overplot = false |
||
) |
RasterPlotPtr casa::SimplePlotter::rasterPlot | ( | casacore::Matrix< int > & | data, |
bool | overplot = false |
||
) |
RasterPlotPtr casa::SimplePlotter::rasterPlot | ( | casacore::Matrix< casacore::uInt > & | data, |
bool | overplot = false |
||
) |
RasterPlotPtr casa::SimplePlotter::rasterPlot | ( | casacore::Matrix< double > & | data, |
double | fromX, | ||
double | toX, | ||
double | fromY, | ||
double | toY, | ||
bool | overplot = false |
||
) |
RasterPlotPtr casa::SimplePlotter::rasterPlot | ( | casacore::Matrix< float > & | data, |
double | fromX, | ||
double | toX, | ||
double | fromY, | ||
double | toY, | ||
bool | overplot = false |
||
) |
RasterPlotPtr casa::SimplePlotter::rasterPlot | ( | casacore::Matrix< int > & | data, |
double | fromX, | ||
double | toX, | ||
double | fromY, | ||
double | toY, | ||
bool | overplot = false |
||
) |
RasterPlotPtr casa::SimplePlotter::rasterPlot | ( | casacore::Matrix< casacore::uInt > & | data, |
double | fromX, | ||
double | toX, | ||
double | fromY, | ||
double | toY, | ||
bool | overplot = false |
||
) |
RasterPlotPtr casa::SimplePlotter::rasterPlot | ( | PlotRasterDataPtr | data, |
bool | overplot = false |
||
) |
PlotShapeRectanglePtr casa::SimplePlotter::rectangle | ( | double | left, |
double | top, | ||
double | right, | ||
double | bottom | ||
) |
Draw a rectangle from the given upper left point to the given lower right point.
void casa::SimplePlotter::releaseDrawing | ( | ) |
void casa::SimplePlotter::rescaleAxes | ( | ) |
Automatically rescale the axes to show all items on the canvas.
void casa::SimplePlotter::setAreaFill | ( | const casacore::String & | color, |
PlotAreaFill::Pattern | pattern = PlotAreaFill::FILL |
||
) |
Set the area fill for future histograms, shapes, etc.
to the given characteristics.
void casa::SimplePlotter::setAxesAutoRescale | ( | bool | on = true | ) |
When future items are added to the canvas, automatically rescale the axes to show all items.
void casa::SimplePlotter::setAxesLabels | ( | const casacore::String & | xLabel, |
const casacore::String & | yLabel | ||
) |
Sets the X_BOTTOM and Y_LEFT axes labels to the given.
void casa::SimplePlotter::setCanvasTitle | ( | const casacore::String & | canvasTitle | ) |
Sets the title of the canvas to the given.
void casa::SimplePlotter::setLine | ( | const casacore::String & | color, |
PlotLine::Style | style = PlotLine::SOLID , |
||
double | width = 1.0 |
||
) |
Set the line for future plots to the given characteristics.
Color can be hexadecimal form ("000000") or name form ("black").
void casa::SimplePlotter::setSymbol | ( | PlotSymbol::Symbol | symbol, |
const casacore::String & | color = "blue" , |
||
double | size = 5 , |
||
bool | outline = true |
||
) |
Set the symbol for future plots and points to the given characteristics.
void casa::SimplePlotter::setWindowTitle | ( | const casacore::String & | windowTitle | ) |
Plotter customization.
Sets the title of the plotting window to the given.
void casa::SimplePlotter::setXAxisRange | ( | double | from, |
double | to | ||
) |
Implies setAxesAutoRescale(false)
void casa::SimplePlotter::setYAxisRange | ( | double | from, |
double | to | ||
) |
Implies setAxesAutoRescale(false)
void casa::SimplePlotter::showCartesianAxes | ( | bool | show = true | ) |
Show/hide Cartesian axes.
void casa::SimplePlotter::showDefaultExportTools | ( | bool | show = true | ) |
Show or hide default "export tools" panel - i.e., saving to a file.
See Plotter::DefaultPanel::EXPORT_TOOLS.
void casa::SimplePlotter::showDefaultHandTools | ( | bool | show = true | ) |
Interaction Methods.
Show or hide default "hand tools" panel - i.e., zooming, panning, etc. See Plotter::DefaultPanel::HAND_TOOLS.
void casa::SimplePlotter::showLines | ( | bool | showLines = true | ) |
Plot customization.
Turn lines on or off for future plots.
void casa::SimplePlotter::showSymbols | ( | bool | showSymbols = true | ) |
Turns symbols on or off for future plots and points.
RasterPlotPtr casa::SimplePlotter::spectrogram | ( | casacore::Matrix< double > & | data, |
bool | overplt = false |
||
) |
RasterPlotPtr casa::SimplePlotter::spectrogram | ( | casacore::Matrix< float > & | data, |
bool | overplot = false |
||
) |
RasterPlotPtr casa::SimplePlotter::spectrogram | ( | casacore::Matrix< int > & | data, |
bool | overplot = false |
||
) |
RasterPlotPtr casa::SimplePlotter::spectrogram | ( | casacore::Matrix< casacore::uInt > & | data, |
bool | overplot = false |
||
) |
RasterPlotPtr casa::SimplePlotter::spectrogram | ( | casacore::Matrix< double > & | data, |
double | fromX, | ||
double | toX, | ||
double | fromY, | ||
double | toY, | ||
bool | overplot = false |
||
) |
RasterPlotPtr casa::SimplePlotter::spectrogram | ( | casacore::Matrix< float > & | data, |
double | fromX, | ||
double | toX, | ||
double | fromY, | ||
double | toY, | ||
bool | overplot = false |
||
) |
RasterPlotPtr casa::SimplePlotter::spectrogram | ( | casacore::Matrix< int > & | data, |
double | fromX, | ||
double | toX, | ||
double | fromY, | ||
double | toY, | ||
bool | overplot = false |
||
) |
RasterPlotPtr casa::SimplePlotter::spectrogram | ( | casacore::Matrix< casacore::uInt > & | data, |
double | fromX, | ||
double | toX, | ||
double | fromY, | ||
double | toY, | ||
bool | overplot = false |
||
) |
RasterPlotPtr casa::SimplePlotter::spectrogram | ( | PlotRasterDataPtr | data, |
bool | overplot = false |
||
) |
RasterPlotPtr casa::SimplePlotter::spectrogram | ( | casacore::Matrix< double > & | d, |
casacore::Vector< double > & | contours, | ||
bool | overplot = false |
||
) |
RasterPlotPtr casa::SimplePlotter::spectrogram | ( | casacore::Matrix< float > & | data, |
casacore::Vector< float > & | contours, | ||
bool | overplot = false |
||
) |
RasterPlotPtr casa::SimplePlotter::spectrogram | ( | casacore::Matrix< int > & | data, |
casacore::Vector< int > & | contours, | ||
bool | overplot = false |
||
) |
RasterPlotPtr casa::SimplePlotter::spectrogram | ( | casacore::Matrix< casacore::uInt > & | data, |
casacore::Vector< casacore::uInt > & | contours, | ||
bool | overplot = false |
||
) |
RasterPlotPtr casa::SimplePlotter::spectrogram | ( | casacore::Matrix< double > & | d, |
double | fromX, | ||
double | toX, | ||
double | fromY, | ||
double | toY, | ||
casacore::Vector< double > & | contours, | ||
bool | overplot = false |
||
) |
RasterPlotPtr casa::SimplePlotter::spectrogram | ( | casacore::Matrix< float > & | data, |
double | fromX, | ||
double | toX, | ||
double | fromY, | ||
double | toY, | ||
casacore::Vector< float > & | contours, | ||
bool | overplot = false |
||
) |
RasterPlotPtr casa::SimplePlotter::spectrogram | ( | casacore::Matrix< int > & | data, |
double | fromX, | ||
double | toX, | ||
double | fromY, | ||
double | toY, | ||
casacore::Vector< int > & | contours, | ||
bool | overplot = false |
||
) |
RasterPlotPtr casa::SimplePlotter::spectrogram | ( | casacore::Matrix< casacore::uInt > & | data, |
double | fromX, | ||
double | toX, | ||
double | fromY, | ||
double | toY, | ||
casacore::Vector< casacore::uInt > & | contours, | ||
bool | overplot = false |
||
) |
RasterPlotPtr casa::SimplePlotter::spectrogram | ( | PlotRasterDataPtr | data, |
std::vector< double > & | contours, | ||
bool | overplot = false |
||
) |
PlotShapeLinePtr casa::SimplePlotter::xLine | ( | double | value | ) |
Draw a line at the given x value.
PlotShapeLinePtr casa::SimplePlotter::yLine | ( | double | value | ) |
Draw a line at the given y value.
|
private |
Points accumulated using plotPoint calls.
Definition at line 399 of file SimplePlotter.h.
|
private |
Area fill for future histograms, shapes, etc.
Definition at line 408 of file SimplePlotter.h.
Referenced by getAreaFill().
|
private |
|
private |
|
private |
|
private |
Mouse tools.
Definition at line 396 of file SimplePlotter.h.
|
private |
Plotter, with single canvas.
Definition at line 390 of file SimplePlotter.h.
Referenced by getPlotter().
|
private |
Symbol for future plots and points.
Definition at line 405 of file SimplePlotter.h.
Referenced by getSymbol().