Plot related functions |
||
GtkType |
gtk_plot_get_type |
(void); |
GtkWidget* |
gtk_plot_new |
(GdkDrawable *drawable); |
GtkWidget* |
gtk_plot_new_with_size |
(GdkDrawable *drawable, gdouble width, gdouble height); |
void |
gtk_plot_construct |
(GtkPlot *plot, GdkDrawable *drawable); |
void |
gtk_plot_construct_with_size |
(GtkPlot *plot, GdkDrawable *drawable, gdouble width, gdouble height); |
void |
gtk_plot_set_drawable |
(GtkPlot *plot, GdkDrawable *drawable); |
GdkDrawable * |
gtk_plot_get_drawable |
(GtkPlot *plot); |
void |
gtk_plot_set_pc |
(GtkPlot *plot, GtkPlotPC *pc); |
void |
gtk_plot_set_background_pixmap |
(GtkPlot *plot, |
void |
gtk_plot_set_transparent |
(GtkPlot *plot, |
gboolean |
gtk_plot_is_transparent |
(GtkPlot *plot); |
void |
gtk_plot_get_position |
(GtkPlot *plot, |
void |
gtk_plot_get_size |
(GtkPlot *plot, gdouble *width, gdouble *height); |
GtkAllocation |
gtk_plot_get_internal_allocation |
(GtkPlot *plot); |
void |
gtk_plot_set_background |
(GtkPlot *plot, const GdkColor *background); |
void |
gtk_plot_paint |
(GtkPlot *plot); |
void |
gtk_plot_refresh |
(GtkPlot *plot, |
void |
gtk_plot_move |
(GtkPlot *plot, |
void |
gtk_plot_resize |
(GtkPlot *plot, |
void |
gtk_plot_set_magnification |
(GtkPlot *plot, |
void |
gtk_plot_move_resize |
(GtkPlot *plot, |
void |
gtk_plot_get_pixel |
(GtkPlot *plot, |
void |
gtk_plot_get_point |
(GtkPlot *plot, |
void |
gtk_plot_clip_data |
(GtkPlot *plot, gboolean clip); |
void |
gtk_plot_set_xrange |
(GtkPlot *plot, |
void |
gtk_plot_set_yrange |
(GtkPlot *plot, |
void |
gtk_plot_set_range |
(GtkPlot *plot, |
void |
gtk_plot_autoscale |
(GtkPlot *plot); |
void |
gtk_plot_get_xrange |
(GtkPlot *plot, |
void |
gtk_plot_get_yrange |
GtkPlot *plot, |
void |
gtk_plot_set_xscale |
(GtkPlot *plot, |
void |
gtk_plot_set_yscale |
(GtkPlot *plot, |
GtkPlotScale |
gtk_plot_get_xscale |
(GtkPlot *plot); |
GtkPlotScale |
gtk_plot_get_yscale |
(GtkPlot *plot); |
|
gtk_plot_put_text |
GtkPlot *plot, gdouble x, gdouble y, const gchar *font, gint height, gint angle, const GdkColor *foreground, const GdkColor *background, gboolean transparent, GtkJustification justification, const gchar *text); |
gint |
gtk_plot_remove_text |
(GtkPlot *plot, GtkPlotText *text); |
void |
gtk_plot_text_get_size |
(const gchar *text, gint angle, const gchar *font_name, gint font_size, 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_draw_text |
(GtkPlot *plot, |
Axis related functions |
||
GtkObject* |
gtk_plot_axis_new |
(GtkPlotOrientation orientation); |
void |
gtk_plot_axis_construct |
(GtkPlotAxis *axis, GtkPlotOrientation orientation); |
GtkPlotAxis * |
gtk_plot_get_axis |
(GtkPlot *plot, GtkPlotAxisPos axis); |
void |
gtk_plot_axis_set_visible |
(GtkPlot *plot, GtkPlotAxisPos axis, gboolean visible); |
gboolean |
gtk_plot_axis_visible |
(GtkPlot *plot, GtkPlotAxisPos axis); |
void |
gtk_plot_axis_set_title |
(GtkPlot *plot, GtkPlotAxisPos axis, const gchar *title); |
void |
gtk_plot_axis_show_title |
(GtkPlot *plot, GtkPlotAxisPos axis); |
void |
gtk_plot_axis_hide_title |
(GtkPlot *plot, GtkPlotAxisPos axis); |
void |
gtk_plot_axis_move_title |
(GtkPlot *plot, GtkPlotAxisPos axis, gint angle, gdouble x, gdouble y); |
void |
gtk_plot_axis_justify_title |
(GtkPlot *plot, GtkPlotAxisPos axis, GtkJustification justification); |
void |
gtk_plot_axis_set_attributes |
(GtkPlot *plot, GtkPlotAxisPos axis, gfloat width, const GdkColor *color); |
void |
gtk_plot_axis_get_attributes |
(GtkPlot *plot, |
void |
gtk_plot_axis_set_ticks |
(GtkPlot *plot, GtkPlotOrientation orientation, gdouble major_step, gint nminor); |
void |
gtk_plot_axis_set_major_ticks |
(GtkPlot *plot, GtkPlotOrientation orientation, gdouble major_step); |
void |
gtk_plot_axis_set_minor_ticks |
(GtkPlot *plot, GtkPlotOrientation orientation, gint nminor); |
void |
gtk_plot_axis_set_ticks_length |
(GtkPlot *plot, GtkPlotAxisPos axis, gint length); |
void |
gtk_plot_axis_set_ticks_width |
(GtkPlot *plot, GtkPlotAxisPos axis, gfloat width); |
void |
gtk_plot_axis_show_ticks |
(GtkPlot *plot, GtkPlotAxisPos axis, gint major_mask, gint minor_mask); |
void |
gtk_plot_axis_set_ticks_limits |
(GtkPlot *plot, GtkPlotOrientation orientation, gdouble begin, gdouble end); |
void |
gtk_plot_axis_unset_ticks_limits |
(GtkPlot *plot, GtkPlotOrientation orientation); |
void |
gtk_plot_axis_show_labels |
(GtkPlot *plot, GtkPlotAxisPos axis, gint labels_mask); |
void |
gtk_plot_axis_title_set_attributes |
(GtkPlot *plot, GtkPlotAxisPos axis, const gchar *font, gint height, gint angle, const GdkColor *foreground, const GdkColor *background, gboolean transparent, GtkJustification justification); |
void |
gtk_plot_axis_set_labels_attributes |
(GtkPlot *plot, GtkPlotAxisPos axis, const gchar *font, gint height, gint angle, const GdkColor *foreground, const GdkColor *background, gboolean transparent, GtkJustification justification); |
void |
gtk_plot_axis_set_labels_numbers |
(GtkPlot *plot, GtkPlotAxisPos axis, gint style, gint precision); |
void |
gtk_plot_axis_set_labels_offset |
(GtkPlot *plot, GtkPlotAxisPos axis, gint offset); |
gint |
gtk_plot_axis_get_labels_offset |
(GtkPlot *plot, GtkPlotAxisPos axis); |
void |
gtk_plot_axis_use_custom_tick_labels |
(GtkPlot *plot, GtkPlotAxisPos axispos, gboolean use); |
void |
gtk_plot_axis_set_labels_suffix |
(GtkPlot *plot, GtkPlotAxisPos axis, const gchar *text); |
void |
gtk_plot_axis_set_labels_prefix |
(GtkPlot *plot, GtkPlotAxisPos axis, const gchar *text); |
gchar * |
gtk_plot_axis_get_labels_suffix |
(GtkPlot *plot, GtkPlotAxisPos axis); |
gchar * |
gtk_plot_axis_get_labels_prefix |
(GtkPlot *plot, GtkPlotAxisPos axis); |
|
|
|
|
Grid related functions |
|
|
|
|
void |
gtk_plot_x0_set_visible |
(GtkPlot *plot, gboolean visible); |
gboolean |
gtk_plot_x0_visible |
(GtkPlot *plot); |
void |
gtk_plot_y0_set_visible |
(GtkPlot *plot, gboolean visible); |
gboolean | gtk_plot_y0_visible | (GtkPlot *plot); |
void |
gtk_plot_grids_set_on_top |
(GtkPlot *plot, gboolean on_top); |
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 style, gfloat width, const GdkColor *color); |
void |
gtk_plot_x0line_set_attributes |
(GtkPlot *plot, GtkPlotLineStyle style, gfloat width, const GdkColor *color); |
void |
gtk_plot_major_vgrid_set_attributes |
(GtkPlot *plot, GtkPlotLineStyle style, float width, const GdkColor *color); |
void |
gtk_plot_minor_vgrid_set_attributes |
(GtkPlot *plot, GtkPlotLineStyle style, gfloat width, const GdkColor *color); |
void |
gtk_plot_major_hgrid_set_attributes |
(GtkPlot *plot, GtkPlotLineStyle style, gfloat width, const GdkColor *color); |
void |
gtk_plot_minor_hgrid_set_attributes |
(GtkPlot *plot, GtkPlotLineStyle style, gfloat width, const GdkColor *color); |
|
|
|
|
Legends related functions |
|
|
|
|
void |
gtk_plot_show_legends |
(GtkPlot *plot); |
void |
gtk_plot_hide_legends |
(GtkPlot *plot); |
void |
gtk_plot_set_legends_border |
(GtkPlot *plot, GtkPlotBorderStyle border, gint shadow_width); |
void |
gtk_plot_legends_move |
(GtkPlot *plot, gdouble x, gdouble y); |
void |
gtk_plot_legends_get_position |
(GtkPlot *plot, gdouble *x, gdouble *y); |
GtkAllocation |
gtk_plot_legends_get_allocation |
(GtkPlot *plot); |
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); |
|
|
|
|
Datasets related functions |
|
|
|
|
void |
gtk_plot_add_data |
(GtkPlot *plot, GtkPlotData *data); |
gint |
gtk_plot_remove_data |
(GtkPlot *plot, GtkPlotData *data); |
GtkPlotData * |
gtk_plot_add_function |
(GtkPlot *plot, GtkPlotFunc function); |
|
|
GtkPlot signals | GtkPlotData signals | GtkPlotAxis signals |
struct GtkPlot; struct GtkPlotAxis; struct GtkPlotText; struct GtkPlotLine; struct GtkPlotSymbol; struct GtkPlotTicks; struct GtkPlotVector; struct GtkPlotMarker; |
GtkWidget* gtk_plot_new (GdkDrawable *drawable); |
Create a news GtkPlot widget
drawable | A drawable Gdk widget |
Returns | a new GtkPlot widget |
GtkWidget* gtk_plot_new_with_size (GdkDrawable *drawable, gdouble width, gdouble height); |
Create a new GtkPlot widget with specified dimensions
drawable | A drawable Gdk widget |
width,height | Width,height of the new GtkPlot widget |
Returns | a new GtkPlot widget |
void gtk_plot_construct (GtkPlot *plot, GdkDrawable *drawable); |
.Initialize a GtkPlot structure.
plot | a GtkPlot widget |
drawable | A drawable Gdk widget |
void gtk_plot_construct_with_size (GtkPlot *plot, GdkDrawable *drawable, gdouble width, gdouble height); |
.Initialize a GtkPlot structure with specified dimensions
plot | a GtkPlot widget |
drawable | A drawable Gdk widget |
width,height | Width,height of the new GtkPlot widget |
void gtk_plot_set_drawable (GtkPlot *plot, GdkDrawable *drawable); |
Set the drawable widget for plot.
plot | a GtkPlot widget |
drawable | A drawable Gdk widget |
GtkPlotText * gtk_plot_put_text (GtkPlot *plot, gdouble x, gdouble y, const gchar *font, gint height, gint angle, const GdkColor *foreground, const GdkColor *background, gboolean transparent, GtkJustification justification, const gchar *text); |
Insert text in a plot.
plot | a GtkPlot Widget |
x,y | coordinates where the text is inserted |
font | text font |
height | text height |
angle | the angle at which the text is inclined |
foreground,background | colors of text,background |
transparent | transparency of text (TRUE or FALSE) |
justification | GTK_JUSTIFY_LEFT, RIGHT, CENTER |
text | string pointer |
Returns | a GtkPlot widget |
void gtk_plot_text_get_size (const gchar *text, gint angle, const gchar *font_name, gint font_size, gint *width, gint *height, gint *ascent, gint *descent); |
Get plot text size .
text | string pointer |
angle | angle of invlination of the text |
font_name | name of the font |
font_size | size of the font |
*width,*height | here we store height , width |
*ascent,*descent | here we store ascent,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); |
Get the area of the plot text
text | string pointer |
angle | angle of inclination of text |
just | GTK_JUSTIFY_LEFT, RIGHT, CENTER |
font_name | name of the font |
font_size | size of the font |
*x,*y | |
*width,*height | here we store height , width |
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); |
Set the attributes of the plot text.
text_attr | GtkPlotText widget |
font | font name |
height | height of the font |
angle | inclination angle of the text |
fg,bg | foreground , background color of the text |
transparent | transparency of the text(TRUE or FALSE) |
justification | GTK_JUSTIFY_LEFT, RIGHT, CENTER |
text | string pointer |
void gtk_plot_text_set_border (GtkPlotText *text, GtkPlotBorderStyle border, gint border_space, gint border_width, gint shadow_width); |
Set border for the plot text
text | GtkPlotText widget |
border | GTK_PLOT_BORDER_NONE or GTK_PLOT_BORDER_LINE or GTK_PLOT_BORDER_SHADOW |
border_space | border space |
border_width | border width |
shadow_width | border shadow width |
void gtk_plot_axis_move_title (GtkPlot *plot, GtkPlotAxisPos axis, gint angle, gdouble x, gdouble y); |
Move the title of the axis
plot | a GtkPlot widget |
axis | GTK_PLOT_AXIS_LEFT or GTK_PLOT_AXIS_RIGHT or GTK_PLOT_AXIS_TOP or GTK_PLOT_AXIS_BOTTOM |
angle | inclination angle of the axis |
x,y | new coordinates of the axis |
void gtk_plot_axis_justify_title (GtkPlot *plot, GtkPlotAxisPos axis, GtkJustification justification); |
Justify the title of the axis
plot | a GtkPlot widget |
axis | GTK_PLOT_AXIS_LEFT or GTK_PLOT_AXIS_RIGHT or GTK_PLOT_AXIS_TOP or GTK_PLOT_AXIS_BOTTOM |
justification | GTK_JUSTIFY_LEFT, RIGHT, CENTER |
void gtk_plot_axis_set_attributes (GtkPlot *plot, GtkPlotAxisPos axis, gfloat width, const GdkColor *color); |
Set the attributes of the plot axis
plot | a GtkPlot widget |
axis | GTK_PLOT_AXIS_LEFT or GTK_PLOT_AXIS_RIGHT or GTK_PLOT_AXIS_TOP or GTK_PLOT_AXIS_BOTTOM |
width | width of the axis |
color | color of the axis |
void gtk_plot_axis_get_attributes (GtkPlot *plot, GtkPlotAxisPos axis, gfloat *width, GdkColor *color); |
Get the attributes of the plot axis
plot | a GtkPlot widget |
axis | GTK_PLOT_AXIS_LEFT or GTK_PLOT_AXIS_RIGHT or GTK_PLOT_AXIS_TOP or GTK_PLOT_AXIS_BOTTOM |
*width | width of the axis |
*color | color of the axis |
void gtk_plot_axis_title_set_attributes (GtkPlot *plot, GtkPlotAxisPos axis, const gchar *font, gint height, gint angle, const GdkColor *foreground, const GdkColor *background, gboolean transparent, GtkJustification justification); |
Set the attributes of the axis title
plot | a GtkPlot widget |
axis | GTK_PLOT_AXIS_LEFT or GTK_PLOT_AXIS_RIGHT or GTK_PLOT_AXIS_TOP or GTK_PLOT_AXIS_BOTTOM |
font | font name |
height | height of the font |
angle | inclination angle of the axis title |
foreground,background | color of the text |
tranparent | transparency of the title(TRUE or FALSE) |
justification | GTK_JUSTIFY_LEFT, RIGHT, CENTER |
void gtk_plot_axis_set_labels_attributes (GtkPlot *plot, GtkPlotAxisPos axis, const gchar *font, gint height, gint angle, const GdkColor *foreground, const GdkColor *background, gboolean transparent, GtkJustification justification); |
Set the attributes of the axis labels
plot | a GtkPlot widget |
axis | GTK_PLOT_AXIS_LEFT or GTK_PLOT_AXIS_RIGHT or GTK_PLOT_AXIS_TOP or GTK_PLOT_AXIS_BOTTOM |
font | font name |
height | height of the font |
angle | inclination angle of the axis title |
foreground,background | color of the text |
tranparent | transparency of the title(TRUE or FALSE) |
justification | GTK_JUSTIFY_LEFT, RIGHT, CENTER |
void gtk_plot_axis_set_labels_prefix (GtkPlot *plot, GtkPlotAxisPos axis, const gchar *text); |
Set a prefix(insert a string at he beginning of the name) to labels.
plot | a GtkPlot widget |
axis | GTK_PLOT_AXIS_LEFT or GTK_PLOT_AXIS_RIGHT or GTK_PLOT_AXIS_TOP or GTK_PLOT_AXIS_BOTTOM |
text | prefix |
void gtk_plot_set_legends_border (GtkPlot *plot, GtkPlotBorderStyle border, gint shadow_width); |
Set the border properties of the legends
plot | A GtkPlot widget |
border | GTK_PLOT_BORDER_NONE or GTK_PLOT_BORDER_LINE or GTK_PLOT_BORDER_SHADOW |
shadow_width | the width of the shadow |
void gtk_plot_legends_set_attributes (GtkPlot *plot, const gchar *font, gint height, const GdkColor *foreground, const GdkColor *background); |
Set the attributes of the legends in the plot
plot | A GtkPlot widget |
font | font name |
height | height of the font |
foreground,background | colors of the text |