Top | ![]() |
![]() |
![]() |
![]() |
struct | GtkPlot |
struct | GtkPlotAxis |
struct | GtkPlotText |
struct | GtkPlotLine |
struct | GtkPlotSymbol |
struct | GtkPlotTick |
struct | GtkPlotTicks |
struct | GtkPlotVector |
struct | GtkPlotMarker |
enum | GtkPlotScale |
enum | GtkPlotSymbolType |
enum | GtkPlotSymbolStyle |
enum | GtkPlotBorderStyle |
enum | GtkPlotLineStyle |
enum | GtkPlotConnector |
enum | GtkPlotLabelPos |
enum | GtkPlotError |
enum | GtkPlotOrientation |
enum | GtkPlotAxisPos |
enum | GtkPlotLabelStyle |
enum | GtkPlotTicksPos |
#define | gtk_plot_axis_set_labels_numbers |
GBoxed ╰── GtkPlotMarker GObject ╰── GInitiallyUnowned ╰── GtkObject ├── GtkPlotAxis ╰── GtkWidget ╰── GtkMisc ╰── GtkPlot ├── GtkPlot3D ╰── GtkPlotPolar
GtkPlot allows to draw high quality scientific plots in two dimensions with a look and feel very similar to Microcal Origin for Windows. The distribution includes GtkPlotCanvas subclass, and a demo program showing two layered plots with different kind of curves. You can choose between a number of symbol types, lines, connectors -straight lines, steps, splines-, and change their attributes -color, size, width. You can also plot functions, add error bars, edit legends, rotate and move axis titles, change axis properties, etc.
gdouble (*GtkPlotFunc) (GtkPlot *plot
,GtkPlotData *data
,gdouble x
,gboolean *error
);
gdouble (*GtkPlotFunc3D) (GtkPlot *plot
,GtkPlotData *data
,gdouble x
,gdouble y
,gboolean *error
);
void (*GtkPlotIterator) (GtkPlot *plot
,GtkPlotData *data
,gint iter
,gdouble *x
,gdouble *y
,gdouble *z
,gdouble *a
,gdouble *dx
,gdouble *dy
,gdouble *dz
,gdouble *da
,gchar **label
,gboolean *error
);
void (*GtkPlotTicksAutoscaleFunc) (GtkPlotAxis *axis
,gdouble xmin
,gdouble xmax
,gint *precision
);
void (*GtkPlotParseLabelFunc) (GtkPlotAxis *axis
,gdouble val
,gint precision
,gint style
,gchar *label
);
GtkWidget * gtk_plot_new_with_size (GdkDrawable *drawable
,gdouble width
,gdouble height
);
void gtk_plot_construct_with_size (GtkPlot *plot
,GdkDrawable *drawable
,gdouble width
,gdouble height
);
void gtk_plot_set_background_pixmap (GtkPlot *plot
,GdkPixmap *pixmap
);
void gtk_plot_set_magnification (GtkPlot *plot
,gdouble magnification
);
void gtk_plot_move_resize (GtkPlot *plot
,gdouble x
,gdouble y
,gdouble width
,gdouble height
);
void gtk_plot_get_pixel (GtkPlot *plot
,gdouble xx
,gdouble yy
,gdouble *x
,gdouble *y
);
void gtk_plot_get_point (GtkPlot *plot
,gint x
,gint y
,gdouble *xx
,gdouble *yy
);
void gtk_plot_set_range (GtkPlot *plot
,gdouble xmin
,gdouble xmax
,gdouble ymin
,gdouble ymax
);
GtkPlotText * gtk_plot_put_text (GtkPlot *plot
,gdouble x
,gdouble y
,const gchar *font
,gint height
,gint angle
,const GdkColor *fg
,const GdkColor *bg
,gboolean transparent
,GtkJustification justification
,const gchar *text
);
void gtk_plot_text_get_size (const gchar *text
,gint angle
,const gchar *text_font
,gint text_height
,gint *width
,gint *height
,gint *ascent
,gint *descent
);
void gtk_plot_text_get_area (const gchar *text
,gint angle
,GtkJustification just
,const gchar *font_name
,gint font_size
,gint *x
,gint *y
,gint *width
,gint *height
);
void gtk_plot_text_set_attributes (GtkPlotText *text_attr
,const gchar *font
,gint height
,gint angle
,const GdkColor *fg
,const GdkColor *bg
,gboolean transparent
,GtkJustification justification
,const gchar *text
);
void gtk_plot_text_set_border (GtkPlotText *text
,GtkPlotBorderStyle border
,gint border_space
,gint border_width
,gint shadow_width
);
void gtk_plot_draw_line (GtkPlot *plot
,GtkPlotLine line
,gdouble x1
,gdouble y1
,gdouble x2
,gdouble y2
);
void gtk_plot_set_ticks (GtkPlot *plot
,GtkPlotOrientation orientation
,gdouble major_step
,gint nminor
);
void gtk_plot_set_major_ticks (GtkPlot *plot
,GtkPlotOrientation orientation
,gdouble major_step
);
void gtk_plot_set_minor_ticks (GtkPlot *plot
,GtkPlotOrientation orientation
,gint nminor
);
void gtk_plot_set_ticks_limits (GtkPlot *plot
,GtkPlotOrientation orientation
,gdouble begin
,gdouble end
);
void gtk_plot_unset_ticks_limits (GtkPlot *plot
,GtkPlotOrientation orientation
);
void gtk_plot_set_break (GtkPlot *plot
,GtkPlotOrientation orientation
,gdouble min
,gdouble max
,gdouble step_after
,gint nminor_after
,GtkPlotScale scale_after
,gdouble pos
);
void gtk_plot_remove_break (GtkPlot *plot
,GtkPlotOrientation orientation
);
void gtk_plot_axis_construct (GtkPlotAxis *axis
,GtkPlotOrientation orientation
);
void gtk_plot_axis_move_title (GtkPlotAxis *axis
,gint angle
,gdouble x
,gdouble y
);
void gtk_plot_axis_justify_title (GtkPlotAxis *axis
,GtkJustification justification
);
void gtk_plot_axis_set_attributes (GtkPlotAxis *axis
,gfloat width
,const GdkColor *color
);
void gtk_plot_axis_get_attributes (GtkPlotAxis *axis
,gfloat *width
,GdkColor *color
);
void gtk_plot_axis_set_ticks (GtkPlotAxis *axis
,gdouble major_step
,gint nminor
);
void gtk_plot_axis_set_major_ticks (GtkPlotAxis *axis
,gdouble major_step
);
void gtk_plot_axis_set_minor_ticks (GtkPlotAxis *axis
,gint nminor
);
void gtk_plot_axis_set_ticks_length (GtkPlotAxis *axis
,gint length
);
void gtk_plot_axis_set_ticks_width (GtkPlotAxis *axis
,gfloat width
);
void gtk_plot_axis_show_ticks (GtkPlotAxis *axis
,gint major_mask
,gint minor_mask
);
void gtk_plot_axis_set_ticks_limits (GtkPlotAxis *axis
,gdouble begin
,gdouble end
);
void gtk_plot_axis_set_tick_labels (GtkPlotAxis *axis
,GtkPlotArray *array
);
void gtk_plot_axis_set_break (GtkPlotAxis *axis
,gdouble min
,gdouble max
,gdouble step_after
,gint nminor_after
,GtkPlotScale scale_after
,gdouble pos
);
void gtk_plot_axis_title_set_attributes (GtkPlotAxis *axis
,const gchar *font
,gint height
,gint angle
,const GdkColor *fg
,const GdkColor *bg
,gboolean transparent
,GtkJustification justification
);
void gtk_plot_axis_set_labels_attributes (GtkPlotAxis *axis
,const gchar *font
,gint height
,gint angle
,const GdkColor *fg
,const GdkColor *bg
,gboolean transparent
,GtkJustification justification
);
void gtk_plot_axis_set_labels_style (GtkPlotAxis *axis
,GtkPlotLabelStyle style
,gint precision
);
void gtk_plot_axis_set_labels_offset (GtkPlotAxis *axis
,gint offset
);
void gtk_plot_axis_use_custom_tick_labels (GtkPlotAxis *axis
,gboolean use
);
void gtk_plot_axis_set_labels_suffix (GtkPlotAxis *axis
,const gchar *text
);
void gtk_plot_axis_set_labels_prefix (GtkPlotAxis *axis
,const gchar *text
);
void gtk_plot_axis_ticks_autoscale (GtkPlotAxis *axis
,gdouble xmin
,gdouble xmax
,gint *precision
);
gdouble gtk_plot_axis_ticks_transform (GtkPlotAxis *axis
,gdouble y
);
void gtk_plot_axis_parse_label (GtkPlotAxis *axis
,gdouble val
,gint precision
,gint style
,gchar *label
);
void gtk_plot_grids_set_visible (GtkPlot *plot
,gboolean vmajor
,gboolean vminor
,gboolean hmajor
,gboolean hminor
);
void gtk_plot_grids_visible (GtkPlot *plot
,gboolean *vmajor
,gboolean *vminor
,gboolean *hmajor
,gboolean *hminor
);
void gtk_plot_y0line_set_attributes (GtkPlot *plot
,GtkPlotLineStyle line_style
,gfloat width
,const GdkColor *color
);
void gtk_plot_x0line_set_attributes (GtkPlot *plot
,GtkPlotLineStyle line_style
,gfloat width
,const GdkColor *color
);
void gtk_plot_major_vgrid_set_attributes (GtkPlot *plot
,GtkPlotLineStyle style
,gfloat width
,const GdkColor *color
);
void gtk_plot_minor_vgrid_set_attributes (GtkPlot *plot
,GtkPlotLineStyle line_style
,gfloat width
,const GdkColor *color
);
void gtk_plot_major_hgrid_set_attributes (GtkPlot *plot
,GtkPlotLineStyle line_style
,gfloat width
,const GdkColor *color
);
void gtk_plot_minor_hgrid_set_attributes (GtkPlot *plot
,GtkPlotLineStyle line_style
,gfloat width
,const GdkColor *color
);
void gtk_plot_set_legends_border (GtkPlot *plot
,GtkPlotBorderStyle legends_border
,gint shadow_width
);
void gtk_plot_legends_get_position (GtkPlot *plot
,gdouble *x
,gdouble *y
);
void gtk_plot_legends_set_attributes (GtkPlot *plot
,const gchar *font
,gint height
,const GdkColor *foreground
,const GdkColor *background
);
void gtk_plot_set_line_attributes (GtkPlot *plot
,GtkPlotLine line
);
struct GtkPlotAxis;
The GtkPlotAxis struct contains only private data. It should only be accessed through the functions described below.
struct GtkPlotText { };
The GtkPlotText struct contains only private data. It should only be accessed through the functions described below.
struct GtkPlotLine { };
The GtkPlotLine struct contains only private data. It should only be accessed through the functions described below.
struct GtkPlotSymbol { };
The GtkPlotSymbol struct contains only private data. It should only be accessed through the functions described below.
struct GtkPlotTick { };
The GtkPlotTick struct contains only private data. It should only be accessed through the functions described below.
struct GtkPlotTicks { };
The GtkPlotTicks struct contains only private data. It should only be accessed through the functions described below.
struct GtkPlotVector { };
The GtkPlotVector struct contains only private data. It should only be accessed through the functions described below.
struct GtkPlotMarker { };
The GtkPlotMarker struct contains only private data. It should only be accessed through the functions described below.
“allocation-height”
property“allocation-height” gint
Flags: Read / Write
Allowed values: >= -2147483647
Default value: 0
“allocation-width”
property“allocation-width” gint
Flags: Read / Write
Allowed values: >= -2147483647
Default value: 0
“allocation-x”
property“allocation-x” gint
Flags: Read / Write
Allowed values: >= -2147483647
Default value: 0
“allocation-y”
property“allocation-y” gint
Flags: Read / Write
Allowed values: >= -2147483647
Default value: 0
“bottom-align”
property“bottom-align” gdouble
Flags: Read / Write
Allowed values: >= 0
Default value: 0
“left-align”
property“left-align” gdouble
Flags: Read / Write
Allowed values: >= 0
Default value: 0
“legends-border”
property“legends-border” gint
Flags: Read / Write
Allowed values: >= 0
Default value: 0
“legends-border-width”
property“legends-border-width” gint
Flags: Read / Write
Allowed values: >= 0
Default value: 0
“legends-height”
property“legends-height” gint
Flags: Read / Write
Allowed values: >= 0
Default value: 0
“legends-line-width”
property“legends-line-width” gint
Flags: Read / Write
Allowed values: >= 0
Default value: 0
“legends-shadow-width”
property“legends-shadow-width” gint
Flags: Read / Write
Allowed values: >= 0
Default value: 0
“legends-transparent”
property“legends-transparent” gboolean
Flags: Read / Write
Default value: FALSE
“legends-width”
property“legends-width” gint
Flags: Read / Write
Allowed values: >= 0
Default value: 0
“magnification”
property“magnification” gdouble
Flags: Read / Write
Allowed values: >= 0
Default value: 0
“right-align”
property“right-align” gdouble
Flags: Read / Write
Allowed values: >= 0
Default value: 0
“top-align”
property“top-align” gdouble
Flags: Read / Write
Allowed values: >= 0
Default value: 0
“add-data”
signalgboolean user_function (GtkPlot *plot, GtkPlotData *arg1, gpointer user_data)
plot |
the object which received the signal. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
“axis-changed”
signalgboolean user_function (GtkPlot *plot, GtkPlotAxis *arg1, gpointer user_data)
plot |
the object which received the signal. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
“moved”
signalgboolean user_function (GtkPlot *plot, gpointer x, gpointer y, gpointer user_data)
Flags: Run Last
“resized”
signalgboolean user_function (GtkPlot *plot, gpointer width, gpointer height, gpointer user_data)
Flags: Run Last