Gtkmm-PLplot 3.0
A scientific plotting library for Gtkmm
|
abstract base class that will hold a single dataset that can be rendered as a histogram More...
#include <gtkmm-plplot/plotdatahistogram.h>
Public Member Functions | |
virtual | ~PlotDataHistogram () |
double | get_data_minimum () |
double | get_data_maximum () |
int | get_nbins () |
void | set_expand_bins (bool expand_bins) |
bool | get_expand_bins () |
void | set_empty_bins (bool empty_bins) |
bool | get_empty_bins () |
virtual void | get_extremes (double &xmin, double &xmax, double &ymin, double &ymax)=0 |
Public Member Functions inherited from Gtk::PLplot::PlotDataLine | |
virtual | ~PlotDataLine () |
void | set_color (Gdk::RGBA color) |
Gdk::RGBA | get_color () |
void | set_line_style (LineStyle line_style) |
LineStyle | get_line_style () |
void | set_line_width (double line_width) |
double | get_line_width () |
Public Member Functions inherited from Gtk::PLplot::PlotData | |
virtual | ~PlotData () |
void | set_name (Glib::ustring name) |
Glib::ustring | get_name () |
void | show () |
void | hide () |
bool | is_showing () const |
sigc::signal< void(void)> | signal_changed () |
sigc::signal< void(void)> | signal_data_modified () |
virtual void | draw_plot_data (const Cairo::RefPtr< Cairo::Context > &cr, plstream *pls) |
Public Member Functions inherited from Gtk::PLplot::Object | |
virtual void | set_manage () |
Protected Member Functions | |
PlotDataHistogram (double datmin, double datmax, int nbins, bool expand_bins=true, bool empty_bins=true) | |
Protected Member Functions inherited from Gtk::PLplot::PlotDataLine | |
PlotDataLine (Gdk::RGBA color, LineStyle line_style, double line_width) | |
Protected Member Functions inherited from Gtk::PLplot::PlotData | |
virtual void | on_changed () |
virtual void | on_data_modified () |
PlotData () | |
Protected Member Functions inherited from Gtk::PLplot::Object | |
Object () | |
Protected Attributes | |
double | datmin |
Left-hand edge of the lowest-valued bin. | |
double | datmax |
Right-hand edge of the highest-valued bin. | |
int | nbins |
Number of bins into which to divide the data. | |
bool | expand_bins |
When false , the outer bins are drawn with equal size as the ones inside. | |
bool | empty_bins |
When false , bins with zero height are not drawn (there is a gap for such bins). | |
Protected Attributes inherited from Gtk::PLplot::PlotDataLine | |
Gdk::RGBA | color |
The color the dataset will be drawn in. | |
LineStyle | line_style |
The linestyle that will be used for this dataset in the plot. | |
double | line_width |
The line width of the dataset. Default is 1.0. | |
Protected Attributes inherited from Gtk::PLplot::PlotData | |
sigc::signal< void(void)> | _signal_changed |
signal that gets emitted whenever any of the dataset proprties is changed. | |
sigc::signal< void(void)> | _signal_data_modified |
signal that gets emitted whenever the X- and Y-datasets have been modified. | |
Private Member Functions | |
PlotDataHistogram & | operator= (const PlotDataHistogram &)=delete |
no assignment operator | |
PlotDataHistogram (const PlotDataHistogram &source)=delete | |
no default copy constructor | |
abstract base class that will hold a single dataset that can be rendered as a histogram
Base class for histogram data classes and contains common properties, accessible via getters and setters. Important is that whenever a property is changed, signal_changed()
is emitted, which will eventually be picked up by the canvas
that will hold the plot
|
privatedelete |
no default copy constructor
|
protected |
Constructor
PlotDataHistogram constructor.
datmin | left-hand edge of the lowest-valued bin |
datmax | right-hand edge of the highest-valued bin |
nbins | number of bins into which to divide the data (minimum = 3) |
Gtk::PLplot::Exception |
expand_bins | determines if outer bins will be drawn with the same width as the inner ones |
empty_bins | determines whether empty bins should be drawn |
|
virtual |
Destructor
double Gtk::PLplot::PlotDataHistogram::get_data_maximum | ( | ) |
Get the right-hand edge of the highest-valued bin
double Gtk::PLplot::PlotDataHistogram::get_data_minimum | ( | ) |
Get the left-hand edge of the lowest-valued bin
bool Gtk::PLplot::PlotDataHistogram::get_empty_bins | ( | ) |
Get current empty bins drawing behavior
bool Gtk::PLplot::PlotDataHistogram::get_expand_bins | ( | ) |
Get current outer bins expansion behavior
|
pure virtual |
Get dataset extremes
Will be used in determining the box and its axes
Implemented in Gtk::PLplot::PlotDataHistogramBinned, and Gtk::PLplot::PlotDataHistogramUnbinned.
int Gtk::PLplot::PlotDataHistogram::get_nbins | ( | ) |
Get the number of bins
|
privatedelete |
no assignment operator
void Gtk::PLplot::PlotDataHistogram::set_empty_bins | ( | bool | empty_bins | ) |
Set whether empty bins should be drawn
empty_bins | new value |
void Gtk::PLplot::PlotDataHistogram::set_expand_bins | ( | bool | expand_bins | ) |
Set outer bins expansion behavior
expand_bins | the new expansion behavior |
|
protected |
Right-hand edge of the highest-valued bin.
|
protected |
Left-hand edge of the lowest-valued bin.
|
protected |
When false
, bins with zero height are not drawn (there is a gap for such bins).
|
protected |
When false
, the outer bins are drawn with equal size as the ones inside.
|
protected |
Number of bins into which to divide the data.