| Top |
| BPlotWidget * | b_plot_widget_new_scatter () |
| void | b_plot_widget_add_view () |
| BPlotWidget * | b_plot_widget_new_density () |
| BElementViewCartesian * | b_plot_widget_get_main_view () |
| BAxisView * | b_plot_widget_get_axis_view () |
| void | b_plot_widget_set_x_label () |
| void | b_plot_widget_set_y_label () |
| void | b_plot_freeze_all () |
| void | b_plot_thaw_all () |
| gboolean | b_plot_save () |
| GtkToolbar * | b_plot_toolbar_new () |
| gdouble | max-frame-rate | Read / Write / Construct |
| gboolean | show-toolbar | Read / Write / Construct |
GObject
╰── GInitiallyUnowned
╰── GtkWidget
╰── GtkContainer
╰── GtkGrid
╰── BPlotWidget
This is a widget that shows a single plot surrounded by axes. Currently, this the plot can be either an XY (scatter) plot or a density plot. The widget also includes a toolbar with controls for zooming and translating (panning) the region shown.
BPlotWidget also includes a mechanism for throttling the rate of updates in response to changes in the data being plotted. This is done using the "max-frame-rate" property.
BPlotWidget *
b_plot_widget_new_scatter (BScatterSeries *series);
Create a BPlotWidget with a BScatterLineView.
void b_plot_widget_add_view (BPlotWidget *obj,BElementViewCartesian *view);
Add a main view to a plot
BPlotWidget * b_plot_widget_new_density ();
Create a BPlotWidget with a BDensityView.
BElementViewCartesian *
b_plot_widget_get_main_view (BPlotWidget *plot);
Get the main view from the plot widget.
BAxisView * b_plot_widget_get_axis_view (BPlotWidget *plot,BCompass c);
Get one of the four axis views from the plot widget.
void b_plot_widget_set_x_label (BPlotWidget *plot,const gchar *label);
Set an axis label for the X (horizontal) axis.
void b_plot_widget_set_y_label (BPlotWidget *plot,const gchar *label);
Set an axis label for the Y (vertical) axis.
void
b_plot_freeze_all (GtkContainer *c);
Freeze all BElementView children of c
.
gboolean b_plot_save (GtkContainer *c,gchar *path,GError *error);
Save an image of the plot to a file. The format is determined by the file
extension: PDF if the basename ends in ".pdf", SVG if it ends in ".svg", and
PNG if the basename ends in ".png" or if there is no extension. Only
BElementViews are drawn, and the size of the image is just large enough to
fit the BElementViews (which may be smaller than c
's allocated size).
GtkToolbar *
b_plot_toolbar_new (GtkContainer *c);
Create a new toolbar for a plot or collection of plots. The items in the
toolbar will operate on all BElementViews that are children of c
.