![]() |
![]() |
![]() |
GtkExtra Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces | Properties | Signals |
#include <gtkextra.h> GtkPlot; GtkPlotAxis; GtkPlotText; GtkPlotLine; GtkPlotSymbol; GtkPlotTick; GtkPlotTicks; GtkPlotVector; GtkPlotMarker; 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); enum GtkPlotScale; enum GtkPlotSymbolType; enum GtkPlotSymbolStyle; enum GtkPlotBorderStyle; enum GtkPlotLineStyle; enum GtkPlotConnector; enum GtkPlotLabelPos; enum GtkPlotError; enum GtkPlotOrientation; enum GtkPlotAxisPos; enum GtkPlotLabelStyle; enum GtkPlotTicksPos; void (*GtkPlotTicksAutoscaleFunc) (GtkPlotAxis *axis, gdouble xmin, gdouble xmax, gint *precision); gdouble (*GtkPlotTicksInverseFunc) (GtkPlotAxis *axis, gdouble y); void (*GtkPlotTicksRecalcFunc) (GtkPlotAxis *axis); gdouble (*GtkPlotTicksTransformFunc) (GtkPlotAxis *axis, gdouble y); void (*GtkPlotParseLabelFunc) (GtkPlotAxis *axis, gdouble val, gint precision, gint style, gchar *label); 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, GdkPixmap *pixmap); void gtk_plot_set_transparent (GtkPlot *plot, gboolean transparent); gboolean gtk_plot_is_transparent (GtkPlot *plot); void gtk_plot_get_position (GtkPlot *plot, gdouble *x, gdouble *y); 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 *bg_color); void gtk_plot_paint (GtkPlot *plot); void gtk_plot_refresh (GtkPlot *plot, GdkRectangle *drawing_area); void gtk_plot_move (GtkPlot *plot, gdouble x, gdouble y); void gtk_plot_resize (GtkPlot *plot, gdouble width, gdouble height); 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_clip_data (GtkPlot *plot, gboolean clip); void gtk_plot_set_xrange (GtkPlot *plot, gdouble xmin, gdouble xmax); void gtk_plot_set_yrange (GtkPlot *plot, gdouble ymin, gdouble ymax); void gtk_plot_set_range (GtkPlot *plot, gdouble xmin, gdouble xmax, gdouble ymin, gdouble ymax); void gtk_plot_autoscale (GtkPlot *plot); void gtk_plot_get_xrange (GtkPlot *plot, gdouble *xmin, gdouble *xmax); void gtk_plot_get_yrange (GtkPlot *plot, gdouble *ymin, gdouble *ymax); void gtk_plot_set_xscale (GtkPlot *plot, GtkPlotScale scale_type); void gtk_plot_set_yscale (GtkPlot *plot, GtkPlotScale scale_type); GtkPlotScale gtk_plot_get_xscale (GtkPlot *plot); GtkPlotScale gtk_plot_get_yscale (GtkPlot *plot); void gtk_plot_reflect_x (GtkPlot *plot, gboolean reflect); void gtk_plot_reflect_y (GtkPlot *plot, gboolean reflect); gboolean gtk_plot_is_x_reflected (GtkPlot *plot); gboolean gtk_plot_is_y_reflected (GtkPlot *plot); 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); gint gtk_plot_remove_text (GtkPlot *plot, GtkPlotText *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_draw_text (GtkPlot *plot, GtkPlotText text); 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); 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 (GtkPlotAxis *axis, gboolean visible); gboolean gtk_plot_axis_visible (GtkPlotAxis *axis); void gtk_plot_axis_set_title (GtkPlotAxis *axis, const gchar *title); void gtk_plot_axis_show_title (GtkPlotAxis *axis); void gtk_plot_axis_hide_title (GtkPlotAxis *axis); 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_unset_ticks_limits (GtkPlotAxis *axis); 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_remove_break (GtkPlotAxis *axis); void gtk_plot_axis_show_labels (GtkPlotAxis *axis, gint labels_mask); 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); #define gtk_plot_axis_set_labels_numbers void gtk_plot_axis_set_labels_style (GtkPlotAxis *axis, GtkPlotLabelStyle style, gint precision); void gtk_plot_axis_set_labels_offset (GtkPlotAxis *axis, gint offset); gint gtk_plot_axis_get_labels_offset (GtkPlotAxis *axis); 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); gchar * gtk_plot_axis_get_labels_suffix (GtkPlotAxis *axis); gchar * gtk_plot_axis_get_labels_prefix (GtkPlotAxis *axis); void gtk_plot_axis_ticks_recalc (GtkPlotAxis *axis); void gtk_plot_axis_ticks_autoscale (GtkPlotAxis *axis, gdouble xmin, gdouble xmax, gint *precision); gdouble gtk_plot_axis_ticks_transform (GtkPlotAxis *axis, gdouble y); gdouble gtk_plot_axis_ticks_inverse (GtkPlotAxis *axis, gdouble x); void gtk_plot_axis_parse_label (GtkPlotAxis *axis, gdouble val, gint precision, gint style, gchar *label); 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); gboolean gtk_plot_grids_on_top (GtkPlot *plot); 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_show_legends (GtkPlot *plot); void gtk_plot_hide_legends (GtkPlot *plot); void gtk_plot_set_legends_border (GtkPlot *plot, GtkPlotBorderStyle legends_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); void gtk_plot_add_data (GtkPlot *plot, GtkPlotData *data); gint gtk_plot_remove_data (GtkPlot *plot, GtkPlotData *dataset); GtkPlotData * gtk_plot_add_function (GtkPlot *plot, GtkPlotFunc function);
GObject +----GInitiallyUnowned +----GtkObject +----GtkWidget +----GtkMisc +----GtkPlot +----GtkPlot3D +----GtkPlotPolar
GObject +----GInitiallyUnowned +----GtkObject +----GtkPlotAxis
"allocation-height" gint : Read / Write "allocation-width" gint : Read / Write "allocation-x" gint : Read / Write "allocation-y" gint : Read / Write "bg-color" gpointer : Read / Write "bg-pixmap" gpointer : Read / Write "bottom-align" gdouble : Read / Write "bottom-axis" GtkPlotAxis* : Read "clip-data" gboolean : Read / Write "grids-on-top" gboolean : Read / Write "height" gdouble : Read / Write "left-align" gdouble : Read / Write "left-axis" GtkPlotAxis* : Read "legends-attr-text" gpointer : Read / Write "legends-border" gint : Read / Write "legends-border-width" gint : Read / Write "legends-height" gint : Read / Write "legends-line-width" gint : Read / Write "legends-shadow-width" gint : Read / Write "legends-show" gboolean : Read / Write "legends-transparent" gboolean : Read / Write "legends-width" gint : Read / Write "legends-x" gdouble : Read / Write "legends-y" gdouble : Read / Write "magnification" gdouble : Read / Write "reflect-x" gboolean : Read / Write "reflect-y" gboolean : Read / Write "right-align" gdouble : Read / Write "right-axis" GtkPlotAxis* : Read "show-x0" gboolean : Read / Write "show-y0" gboolean : Read / Write "top-align" gdouble : Read / Write "top-axis" GtkPlotAxis* : Read "transparent" gboolean : Read / Write "use-pixmap" gboolean : Read / Write "width" gdouble : Read / Write "x" gdouble : Read / Write "x0-line" gpointer : Read / Write "xmax" gdouble : Read / Write "xmin" gdouble : Read / Write "xscale" gint : Read / Write "y" gdouble : Read / Write "y0-line" gpointer : Read / Write "ymax" gdouble : Read / Write "ymin" gdouble : Read / Write "yscale" gint : Read / Write
"add-data" : Run Last "axis-changed" : Run Last "changed" : Run Last "moved" : Run Last "resized" : Run Last "update" : Run Last
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.
typedef struct _GtkPlotAxis GtkPlotAxis;
The GtkPlotAxis struct contains only private data. It should only be accessed through the functions described below.
typedef struct { } GtkPlotText;
The GtkPlotText struct contains only private data. It should only be accessed through the functions described below.
typedef struct { } GtkPlotLine;
The GtkPlotLine struct contains only private data. It should only be accessed through the functions described below.
typedef struct { } GtkPlotSymbol;
The GtkPlotSymbol struct contains only private data. It should only be accessed through the functions described below.
typedef struct { } GtkPlotTick;
The GtkPlotTick struct contains only private data. It should only be accessed through the functions described below.
typedef struct { } GtkPlotTicks;
The GtkPlotTicks struct contains only private data. It should only be accessed through the functions described below.
typedef struct { } GtkPlotVector;
The GtkPlotVector struct contains only private data. It should only be accessed through the functions described below.
typedef struct { } GtkPlotMarker;
The GtkPlotMarker struct contains only private data. It should only be accessed through the functions described below.
gdouble (*GtkPlotFunc) (GtkPlot *plot, GtkPlotData *data, gdouble x, gboolean *error);
|
|
|
|
|
|
|
|
Returns : |
gdouble (*GtkPlotFunc3D) (GtkPlot *plot, GtkPlotData *data, gdouble x, gdouble y, gboolean *error);
|
|
|
|
|
|
|
|
|
|
Returns : |
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);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
typedef enum { GTK_PLOT_SYMBOL_NONE, GTK_PLOT_SYMBOL_SQUARE, GTK_PLOT_SYMBOL_CIRCLE, GTK_PLOT_SYMBOL_UP_TRIANGLE, GTK_PLOT_SYMBOL_DOWN_TRIANGLE, GTK_PLOT_SYMBOL_RIGHT_TRIANGLE, GTK_PLOT_SYMBOL_LEFT_TRIANGLE, GTK_PLOT_SYMBOL_DIAMOND, GTK_PLOT_SYMBOL_PLUS, GTK_PLOT_SYMBOL_CROSS, GTK_PLOT_SYMBOL_STAR, GTK_PLOT_SYMBOL_DOT, GTK_PLOT_SYMBOL_IMPULSE, } GtkPlotSymbolType;
typedef enum { GTK_PLOT_SYMBOL_EMPTY, GTK_PLOT_SYMBOL_FILLED, GTK_PLOT_SYMBOL_OPAQUE } GtkPlotSymbolStyle;
typedef enum { GTK_PLOT_BORDER_NONE, GTK_PLOT_BORDER_LINE, GTK_PLOT_BORDER_SHADOW, } GtkPlotBorderStyle;
typedef enum { GTK_PLOT_LINE_NONE, GTK_PLOT_LINE_SOLID, GTK_PLOT_LINE_DOTTED, GTK_PLOT_LINE_DASHED, GTK_PLOT_LINE_DOT_DASH, GTK_PLOT_LINE_DOT_DOT_DASH, GTK_PLOT_LINE_DOT_DASH_DASH } GtkPlotLineStyle;
typedef enum { GTK_PLOT_CONNECT_NONE, GTK_PLOT_CONNECT_STRAIGHT, GTK_PLOT_CONNECT_SPLINE, GTK_PLOT_CONNECT_HV_STEP, GTK_PLOT_CONNECT_VH_STEP, GTK_PLOT_CONNECT_MIDDLE_STEP } GtkPlotConnector;
typedef enum { GTK_PLOT_LABEL_NONE = 0, GTK_PLOT_LABEL_IN = 1 << 0, GTK_PLOT_LABEL_OUT = 1 << 1, }GtkPlotLabelPos;
typedef enum { GTK_PLOT_AXIS_X, GTK_PLOT_AXIS_Y, GTK_PLOT_AXIS_Z, } GtkPlotOrientation;
typedef enum { GTK_PLOT_AXIS_LEFT, GTK_PLOT_AXIS_RIGHT, GTK_PLOT_AXIS_TOP, GTK_PLOT_AXIS_BOTTOM } GtkPlotAxisPos;
typedef enum { GTK_PLOT_LABEL_FLOAT, GTK_PLOT_LABEL_EXP, GTK_PLOT_LABEL_POW } GtkPlotLabelStyle;
typedef enum { GTK_PLOT_TICKS_NONE = 0, GTK_PLOT_TICKS_IN = 1 << 0, GTK_PLOT_TICKS_OUT = 1 << 1 } GtkPlotTicksPos;
void (*GtkPlotTicksAutoscaleFunc) (GtkPlotAxis *axis, gdouble xmin, gdouble xmax, gint *precision);
|
|
|
|
|
|
|
gdouble (*GtkPlotTicksInverseFunc) (GtkPlotAxis *axis, gdouble y);
|
|
|
|
Returns : |
gdouble (*GtkPlotTicksTransformFunc) (GtkPlotAxis *axis, gdouble y);
|
|
|
|
Returns : |
void (*GtkPlotParseLabelFunc) (GtkPlotAxis *axis, gdouble val, gint precision, gint style, gchar *label);
|
|
|
|
|
|
|
|
|
GtkWidget * gtk_plot_new (GdkDrawable *drawable);
|
a Gdk drawable |
Returns : |
GtkWidget * gtk_plot_new_with_size (GdkDrawable *drawable, gdouble width, gdouble height);
|
a Gdk drawable |
|
plot widget width |
|
plot widget height |
Returns : |
the plot widget |
void gtk_plot_construct (GtkPlot *plot, GdkDrawable *drawable);
|
a GtkPlot widget |
|
a Gdk drawable |
void gtk_plot_construct_with_size (GtkPlot *plot, GdkDrawable *drawable, gdouble width, gdouble height);
|
a GtkPlot widget |
|
a Gdk drawable |
|
|
|
void gtk_plot_set_drawable (GtkPlot *plot, GdkDrawable *drawable);
|
a GtkPlot widget |
|
a Gdk drawable |
GdkDrawable * gtk_plot_get_drawable (GtkPlot *plot);
|
a GtkPlot widget |
Returns : |
(transfer none) the GdkDrawable of the plot |
void gtk_plot_set_pc (GtkPlot *plot, GtkPlotPC *pc);
|
a GtkPlot widget |
|
a GtkPlotPc |
void gtk_plot_set_background_pixmap (GtkPlot *plot, GdkPixmap *pixmap);
|
a GtkPlot widget |
|
a Gdk pixmap |
void gtk_plot_set_transparent (GtkPlot *plot, gboolean transparent);
|
a GtkPlot widget |
|
gboolean gtk_plot_is_transparent (GtkPlot *plot);
|
a GtkPlot widget |
Returns : |
void gtk_plot_get_position (GtkPlot *plot, gdouble *x, gdouble *y);
|
a GtkPlot widget. |
|
y
|
|
void gtk_plot_get_size (GtkPlot *plot, gdouble *width, gdouble *height);
|
|
|
|
|
GtkAllocation gtk_plot_get_internal_allocation (GtkPlot *plot);
|
a GtkPlot widget. |
Returns : |
(transfer none) internal_allocation |
void gtk_plot_set_background (GtkPlot *plot, const GdkColor *bg_color);
|
a GtkPlot widget. |
|
void gtk_plot_refresh (GtkPlot *plot, GdkRectangle *drawing_area);
|
a GtkPlot widget |
|
a GdkRectangle |
void gtk_plot_set_magnification (GtkPlot *plot, gdouble magnification);
|
a GtkPlot widget. |
|
void gtk_plot_move_resize (GtkPlot *plot, gdouble x, gdouble y, gdouble width, gdouble height);
|
a GtkPlot widget. |
|
|
|
|
|
|
|
void gtk_plot_get_pixel (GtkPlot *plot, gdouble xx, gdouble yy, gdouble *x, gdouble *y);
|
a GtkPlot widget. |
|
|
|
|
|
|
|
void gtk_plot_get_point (GtkPlot *plot, gint x, gint y, gdouble *xx, gdouble *yy);
|
a GtkPlot widget. |
|
|
|
|
|
|
|
void gtk_plot_clip_data (GtkPlot *plot, gboolean clip);
|
a GtkPlot widget. |
|
void gtk_plot_set_xrange (GtkPlot *plot, gdouble xmin, gdouble xmax);
|
a GtkPlot widget. |
|
|
|
void gtk_plot_set_yrange (GtkPlot *plot, gdouble ymin, gdouble ymax);
|
a GtkPlot widget. |
|
|
|
void gtk_plot_set_range (GtkPlot *plot, gdouble xmin, gdouble xmax, gdouble ymin, gdouble ymax);
|
a GtkPlot widget. |
|
|
|
|
|
|
|
void gtk_plot_get_xrange (GtkPlot *plot, gdouble *xmin, gdouble *xmax);
|
a GtkPlot widget. |
|
|
|
void gtk_plot_get_yrange (GtkPlot *plot, gdouble *ymin, gdouble *ymax);
|
a GtkPlot widget. |
|
|
|
void gtk_plot_set_xscale (GtkPlot *plot, GtkPlotScale scale_type);
|
a GtkPlot widget. |
|
void gtk_plot_set_yscale (GtkPlot *plot, GtkPlotScale scale_type);
|
a GtkPlot widget. |
|
GtkPlotScale gtk_plot_get_xscale (GtkPlot *plot);
|
a GtkPlot widget. |
Returns : |
GtkPlotScale gtk_plot_get_yscale (GtkPlot *plot);
|
a GtkPlot widget. |
Returns : |
void gtk_plot_reflect_x (GtkPlot *plot, gboolean reflect);
|
a GtkPlot widget. |
|
void gtk_plot_reflect_y (GtkPlot *plot, gboolean reflect);
|
a GtkPlot widget. |
|
gboolean gtk_plot_is_x_reflected (GtkPlot *plot);
|
a GtkPlot widget. |
Returns : |
gboolean gtk_plot_is_y_reflected (GtkPlot *plot);
|
a GtkPlot widget. |
Returns : |
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);
|
a GtkPlot widget. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Returns : |
(transfer none) the GtkPlotText |
gint gtk_plot_remove_text (GtkPlot *plot, GtkPlotText *text);
|
a GtkPlot widget. |
|
|
Returns : |
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);
|
a GtkPlot widget |
|
|
|
|
|
|
|
|
|
void gtk_plot_set_ticks (GtkPlot *plot, GtkPlotOrientation orientation, gdouble major_step, gint nminor);
|
a GtkPlot widget. |
|
|
|
|
|
void gtk_plot_set_major_ticks (GtkPlot *plot, GtkPlotOrientation orientation, gdouble major_step);
|
a GtkPlot widget. |
|
|
|
void gtk_plot_set_minor_ticks (GtkPlot *plot, GtkPlotOrientation orientation, gint nminor);
|
a GtkPlot widget. |
|
|
|
void gtk_plot_set_ticks_limits (GtkPlot *plot, GtkPlotOrientation orientation, gdouble begin, gdouble end);
|
a GtkPlot widget. |
|
|
|
|
|
void gtk_plot_unset_ticks_limits (GtkPlot *plot, GtkPlotOrientation orientation);
|
a GtkPlot widget. |
|
void gtk_plot_set_break (GtkPlot *plot, GtkPlotOrientation orientation, gdouble min, gdouble max, gdouble step_after, gint nminor_after, GtkPlotScale scale_after, gdouble pos);
|
a GtkPlot widget. |
|
|
|
|
|
|
|
|
|
|
|
|
|
void gtk_plot_remove_break (GtkPlot *plot, GtkPlotOrientation orientation);
|
a GtkPlot widget. |
|
GtkObject * gtk_plot_axis_new (GtkPlotOrientation orientation);
|
|
Returns : |
void gtk_plot_axis_construct (GtkPlotAxis *axis, GtkPlotOrientation orientation);
|
|
|
GtkPlotAxis * gtk_plot_get_axis (GtkPlot *plot, GtkPlotAxisPos axis);
|
a GtkPlot widget. |
|
a GtkPlotAxis. |
Returns : |
(transfer none) the GtkPlotAxis at the given position |
void gtk_plot_axis_set_visible (GtkPlotAxis *axis, gboolean visible);
|
a GtkPlotAxis. |
|
gboolean gtk_plot_axis_visible (GtkPlotAxis *axis);
|
a GtkPlotAxis. |
Returns : |
void gtk_plot_axis_set_title (GtkPlotAxis *axis, const gchar *title);
|
a GtkPlotAxis.
title
|
|
void gtk_plot_axis_show_title (GtkPlotAxis *axis);
|
a GtkPlotAxis. |
void gtk_plot_axis_hide_title (GtkPlotAxis *axis);
|
a GtkPlotAxis. |
void gtk_plot_axis_move_title (GtkPlotAxis *axis, gint angle, gdouble x, gdouble y);
|
a GtkPlotAxis. |
|
|
|
|
|
void gtk_plot_axis_justify_title (GtkPlotAxis *axis, GtkJustification justification);
|
a GtkPlotAxis. |
|
void gtk_plot_axis_set_attributes (GtkPlotAxis *axis, gfloat width, const GdkColor *color);
|
a GtkPlotAxis. |
|
|
|
void gtk_plot_axis_get_attributes (GtkPlotAxis *axis, gfloat *width, GdkColor *color);
|
a GtkPlotAxis. |
|
color: |
|
void gtk_plot_axis_set_ticks (GtkPlotAxis *axis, gdouble major_step, gint nminor);
|
a GtkPlotAxis. |
|
|
|
void gtk_plot_axis_set_major_ticks (GtkPlotAxis *axis, gdouble major_step);
|
a GtkPlotAxis. |
|
void gtk_plot_axis_set_minor_ticks (GtkPlotAxis *axis, gint nminor);
|
a GtkPlotAxis. |
|
void gtk_plot_axis_set_ticks_length (GtkPlotAxis *axis, gint length);
|
a GtkPlotAxis. |
|
void gtk_plot_axis_set_ticks_width (GtkPlotAxis *axis, gfloat width);
|
a GtkPlotAxis. |
|
void gtk_plot_axis_show_ticks (GtkPlotAxis *axis, gint major_mask, gint minor_mask);
|
a GtkPlotAxis. |
|
|
|
void gtk_plot_axis_set_ticks_limits (GtkPlotAxis *axis, gdouble begin, gdouble end);
|
a GtkPlotAxis. |
|
|
|
void gtk_plot_axis_unset_ticks_limits (GtkPlotAxis *axis);
|
a GtkPlotAxis. |
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);
|
a GtkPlotAxis. |
|
|
|
|
|
|
|
|
|
|
|
void gtk_plot_axis_remove_break (GtkPlotAxis *axis);
|
a GtkPlotAxis. |
void gtk_plot_axis_show_labels (GtkPlotAxis *axis, gint labels_mask);
|
a GtkPlotAxis. |
|
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);
|
a GtkPlotAxis. |
|
|
|
|
|
|
|
|
|
|
|
|
|
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);
|
a GtkPlotAxis. |
|
|
|
|
|
|
|
|
|
|
|
|
|
#define gtk_plot_axis_set_labels_numbers gtk_plot_axis_set_labels_style
void gtk_plot_axis_set_labels_style (GtkPlotAxis *axis, GtkPlotLabelStyle style, gint precision);
|
a GtkPlotAxis. |
|
|
|
void gtk_plot_axis_set_labels_offset (GtkPlotAxis *axis, gint offset);
|
a GtkPlotAxis. |
|
gint gtk_plot_axis_get_labels_offset (GtkPlotAxis *axis);
|
a GtkPlotAxis. |
Returns : |
void gtk_plot_axis_use_custom_tick_labels (GtkPlotAxis *axis, gboolean use);
|
|
|
void gtk_plot_axis_set_labels_suffix (GtkPlotAxis *axis, const gchar *text);
|
a GtkPlotAxis. |
|
void gtk_plot_axis_set_labels_prefix (GtkPlotAxis *axis, const gchar *text);
|
a GtkPlotAxis. |
|
gchar * gtk_plot_axis_get_labels_suffix (GtkPlotAxis *axis);
|
a GtkPlotAxis. |
Returns : |
gchar * gtk_plot_axis_get_labels_prefix (GtkPlotAxis *axis);
|
a GtkPlotAxis. |
Returns : |
void gtk_plot_axis_ticks_autoscale (GtkPlotAxis *axis, gdouble xmin, gdouble xmax, gint *precision);
|
|
|
|
|
|
|
gdouble gtk_plot_axis_ticks_transform (GtkPlotAxis *axis, gdouble y);
|
|
|
|
Returns : |
gdouble gtk_plot_axis_ticks_inverse (GtkPlotAxis *axis, gdouble x);
|
|
|
|
Returns : |
void gtk_plot_axis_parse_label (GtkPlotAxis *axis, gdouble val, gint precision, gint style, gchar *label);
|
|
|
|
|
|
|
|
|
void gtk_plot_x0_set_visible (GtkPlot *plot, gboolean visible);
|
a GtkPlot widget. |
|
gboolean gtk_plot_x0_visible (GtkPlot *plot);
|
a GtkPlot widget. |
Returns : |
void gtk_plot_y0_set_visible (GtkPlot *plot, gboolean visible);
|
a GtkPlot widget. |
|
gboolean gtk_plot_y0_visible (GtkPlot *plot);
|
a GtkPlot widget. |
Returns : |
void gtk_plot_grids_set_on_top (GtkPlot *plot, gboolean on_top);
|
a GtkPlot widget. |
|
gboolean gtk_plot_grids_on_top (GtkPlot *plot);
|
a GtkPlot widget. |
Returns : |
void gtk_plot_grids_set_visible (GtkPlot *plot, gboolean vmajor, gboolean vminor, gboolean hmajor, gboolean hminor);
|
a GtkPlot widget. |
|
|
|
|
|
|
|
void gtk_plot_grids_visible (GtkPlot *plot, gboolean *vmajor, gboolean *vminor, gboolean *hmajor, gboolean *hminor);
|
a GtkPlot widget. |
|
|
|
|
|
|
|
void gtk_plot_y0line_set_attributes (GtkPlot *plot, GtkPlotLineStyle line_style, gfloat width, const GdkColor *color);
|
a GtkPlot widget. |
|
|
|
|
|
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);
|
a GtkPlot widget. |
|
|
|
|
|
void gtk_plot_major_hgrid_set_attributes (GtkPlot *plot, GtkPlotLineStyle line_style, gfloat width, const GdkColor *color);
|
a GtkPlot widget. |
|
|
|
|
|
void gtk_plot_minor_hgrid_set_attributes (GtkPlot *plot, GtkPlotLineStyle line_style, gfloat width, const GdkColor *color);
|
a GtkPlot widget. |
|
|
|
|
|
void gtk_plot_set_legends_border (GtkPlot *plot, GtkPlotBorderStyle legends_border, gint shadow_width);
|
a GtkPlot widget. |
|
|
|
void gtk_plot_legends_move (GtkPlot *plot, gdouble x, gdouble y);
|
a GtkPlot widget. |
|
|
|
void gtk_plot_legends_get_position (GtkPlot *plot, gdouble *x, gdouble *y);
|
a GtkPlot widget. |
|
|
|
GtkAllocation gtk_plot_legends_get_allocation (GtkPlot *plot);
|
a GtkPlot widget. |
Returns : |
(transfer full) the GtkAllocation |
void gtk_plot_legends_set_attributes (GtkPlot *plot, const gchar *font, gint height, const GdkColor *foreground, const GdkColor *background);
|
a GtkPlot widget. |
|
|
|
|
|
|
|
void gtk_plot_set_line_attributes (GtkPlot *plot, GtkPlotLine line);
|
a GtkPlot widget |
|
gint gtk_plot_remove_data (GtkPlot *plot, GtkPlotData *dataset);
|
a GtkPlot widget. |
|
|
Returns : |
GtkPlotData * gtk_plot_add_function (GtkPlot *plot, GtkPlotFunc function);
|
a GtkPlot widget. |
|
the dataset generation function. scope async. |
Returns : |
(transfer none) the GtkPlotData |
"allocation-height"
property"allocation-height" gint : Read / Write
Allowed values: >= -2147483647
Default value: 0
"allocation-width"
property"allocation-width" gint : Read / Write
Allowed values: >= -2147483647
Default value: 0
"allocation-x"
property"allocation-x" gint : Read / Write
Allowed values: >= -2147483647
Default value: 0
"allocation-y"
property"allocation-y" gint : Read / Write
Allowed values: >= -2147483647
Default value: 0
"bottom-align"
property"bottom-align" gdouble : Read / Write
Allowed values: >= 0
Default value: 0
"legends-border"
property"legends-border" gint : Read / Write
Allowed values: >= 0
Default value: 0
"legends-border-width"
property"legends-border-width" gint : Read / Write
Allowed values: >= 0
Default value: 0
"legends-height"
property"legends-height" gint : Read / Write
Allowed values: >= 0
Default value: 0
"legends-line-width"
property"legends-line-width" gint : Read / Write
Allowed values: >= 0
Default value: 0
"legends-shadow-width"
property"legends-shadow-width" gint : Read / Write
Allowed values: >= 0
Default value: 0
"legends-transparent"
property"legends-transparent" gboolean : Read / Write
Default value: FALSE
"legends-width"
property"legends-width" gint : Read / Write
Allowed values: >= 0
Default value: 0
"magnification"
property"magnification" gdouble : Read / Write
Allowed values: >= 0
Default value: 0
"right-align"
property"right-align" gdouble : Read / Write
Allowed values: >= 0
Default value: 0
"add-data"
signalgboolean user_function (GtkPlot *plot, GtkPlotData *arg1, gpointer user_data) : Run Last
|
the object which received the signal. |
|
|
|
user data set when the signal handler was connected. |
Returns : |
"axis-changed"
signalgboolean user_function (GtkPlot *plot, GtkPlotAxis *arg1, gpointer user_data) : Run Last
|
the object which received the signal. |
|
|
|
user data set when the signal handler was connected. |
Returns : |
"changed"
signalvoid user_function (GtkPlot *plot, gpointer user_data) : Run Last
|
a GtkPlot widget. |
|
user data set when the signal handler was connected. |
"moved"
signalgboolean user_function (GtkPlot *plot, gpointer x, gpointer y, gpointer user_data) : Run Last
|
a GtkPlot widget. |
|
|
|
|
|
user data set when the signal handler was connected. |
Returns : |
"resized"
signalgboolean user_function (GtkPlot *plot, gpointer width, gpointer height, gpointer user_data) : Run Last
|
a GtkPlot widget. |
|
|
|
|
|
user data set when the signal handler was connected. |
Returns : |