Gtkmm-PLplot 3.0
A scientific plotting library for Gtkmm
|
The namespace provided by Gtkmm-PLplot. More...
Classes | |
class | Canvas |
Principal plotting widget. More... | |
class | Exception |
Gtkmm-PLplot's exception handler class. More... | |
class | Legend |
a class providing legends for plot classes with multiple datasets More... | |
class | Object |
an abstract base class for all plots and plotdata's More... | |
class | Plot |
an abstract base class for all plots More... | |
class | Plot2D |
a class for two-dimensional plots More... | |
class | Plot3D |
a class for three-dimensional plots More... | |
class | PlotContour |
a class for contour plots More... | |
class | PlotContourShades |
a class for contour plots with shaded regions. More... | |
class | PlotData |
the abstract base class that will hold a single dataset and its properties More... | |
class | PlotData2D |
a class that will hold a single dataset and its properties for a Plot2D plot More... | |
class | PlotData2DErrorX |
a class that will hold a single XY dataset with X errorbars and its properties for a Plot2D plot More... | |
class | PlotData2DErrorXY |
a class that will hold a single XY dataset with X and Y errorbars and its properties for a Plot2D plot More... | |
class | PlotData2DErrorY |
a class that will hold a single XY dataset with Y errorbars and its properties for a Plot2D plot More... | |
class | PlotData3D |
a class that will hold a single dataset and its properties for a Plot3D plot More... | |
class | PlotDataHistogram |
abstract base class that will hold a single dataset that can be rendered as a histogram More... | |
class | PlotDataHistogramBinned |
a class that will hold a single binned histogram dataset and its properties for a PlotHistogram plot More... | |
class | PlotDataHistogramUnbinned |
a class that will hold a single unbinned histogram dataset and its properties for a PlotHistogram plot More... | |
class | PlotDataLine |
abstract base class that will hold a single dataset that can be rendered as a line More... | |
class | PlotDataPolar |
a class that will hold a single dataset and its properties for a PlotPolar plot More... | |
class | PlotDataSurface |
a class for surface datasets More... | |
class | PlotHistogram |
a class for plotting histograms More... | |
class | PlotObject |
the abstract base class that will hold a single plot object and its properties More... | |
class | PlotObject2D |
the abstract base class that will hold a single plot object and its properties that can be added to a plot containing 2D data, such as Plot2D, PlotContour, PlotPolar and PlotHistogram More... | |
struct | PlotObject2DAuxData |
class for auxiliary data to the drawing routine draw_plot_object() used from 2D plots More... | |
class | PlotObject2DLine |
Line object for 2D plots. More... | |
class | PlotObject2DText |
Text object for 2D plots. More... | |
struct | PlotObjectAuxData |
base class for auxiliary data to the drawing routine draw_plot_object() More... | |
class | PlotPolar |
a class for polar plots More... | |
class | RegionSelection |
a class providing support for selecting a region in a plot More... | |
Functions | |
std::vector< double > | indgen (unsigned int n) |
std::valarray< double > | indgen_va (unsigned int n) |
void | change_plstream_color (plstream *pls, Gdk::RGBA color, bool activate=true, int index=2) |
void | change_plstream_colormap (plstream *pls, ColormapPalette colormap) |
double ** | calloc_array2d (int nx, int ny) |
double ** | deep_copy_array2d (double **input, int nx, int ny) |
void | free_array2d (void **input, int nx) |
The namespace provided by Gtkmm-PLplot.
Gtkmm-PLplot provides only one namespace, which is used to contain all of its classes. As it name shows, the namespace name was chosen on purpose to make it clear that it acts as an extension of the Gtkmm provided Gtk
namespace. When including Gtkmm-PLplot in your code, you will have to prefix the class names with our namespace, or alternatively, include using namespace Gtk::PLplot;
in your file.
Provides access to the different area fill patterns supported by PlotDataContour
Controls the appearance of the box around the plot
To be used in combination with Plot2D::set_box_style() and Plot2D::get_box_style()
Provides access to the different colormaps supported by PLplot
Currently supported by PlotDataContour
Enumerator | |
---|---|
DEFAULT | the default colormap |
BLUE_RED | a gradient from blue to red |
BLUE_YELLOW | a gradient from blue to yellow |
GRAY | fifty shades of gray |
HIGHFREQ | to check |
LOWFREQ | to check |
RADAR | to check |
Determines which corner of the Legend box that will be used for the normalized coordinate system.
Enumerator | |
---|---|
TOP_RIGHT | top right corner |
BOTTOM_RIGHT | bottom right corner |
TOP_LEFT | top left corner |
BOTTOM_LEFT | bottom left corner |
Controls the line style of a PlotData2D dataset
To be used in combination with PlotData2D constructors and the PlotData2D::set_line_style() and PlotData2D::get_line_style() methods.
double ** Gtk::PLplot::calloc_array2d | ( | int | nx, |
int | ny | ||
) |
Allocates a an array of arrays
All elements will be initialized to zero. The return value should be freed with free_array2d();
nx | the extent along the first coordinate of the array of arrays |
ny | the extent along the second coordinate of the array of arrays |
void Gtk::PLplot::change_plstream_color | ( | plstream * | pls, |
Gdk::RGBA | color, | ||
bool | activate = true , |
||
int | index = 2 |
||
) |
Changes the current color of the plstream
Convenience function that allows me to change PLplot's colormap
pls | a pointer to a plstream object |
color | the new color |
activate | make this the currently active color for subsequent drawing commands |
index | the index that should be used for this color in PLplot's colormap |
void Gtk::PLplot::change_plstream_colormap | ( | plstream * | pls, |
ColormapPalette | colormap | ||
) |
Changes the current colormap palette of the plstream
Convenience function that allows me to change PLplot's colormap palette for PlotDataContour
pls | a pointer to a plstream object |
colormap | the new colormap |
double ** Gtk::PLplot::deep_copy_array2d | ( | double ** | input, |
int | nx, | ||
int | ny | ||
) |
Creates a deep copy of a dynamically allocated array of dynamically allocated array of double's (double)
The return value should be freed with free_array2d(); This function is likely to produce a segmentation fault or result in undefined behavior when the input arguments are incorrect or invalid.
input | the array of arrays that will be copied |
nx | the extent along the first coordinate of input |
ny | the extent along the second coordinate of input |
void Gtk::PLplot::free_array2d | ( | void ** | input, |
int | nx | ||
) |
Frees a dynamically allocated array of dynamically allocated arrays.
Typically used to free memory allocated by deep_copy_array2d().
input | the array of arrays that will be recursively freed. |
nx | the extent along the first coordinate of input |
std::vector< double > Gtk::PLplot::indgen | ( | unsigned int | n | ) |
Returns a vector of doubles with each element set to the value of its subscript.
n | the length of the vector |
std::valarray< double > Gtk::PLplot::indgen_va | ( | unsigned int | n | ) |
Returns a valarray of doubles with each element set to the value of its subscript.
n | the length of the valarray |