| GTK-EXTRA - Reference Manual

| Home

## Name

### Gtkplotdata - a GtkPlotData widget

## Synopsis

    GtkType
    gtk_plot_data_get_type
    (void);
    GtkWidget*
    gtk_plot_data_new
    (void);
    GtkWidget*
    gtk_plot_data_new_function
    (GtkPlotFunc function);
    void
    gtk_plot_data_construct_function
    (GtkPlotData *data,
    GtkPlotFunc function)
    GtkWidget*
    gtk_plot_data_new_iterator
    (GtkPlotIterator iter,
    gint npoints,
    guint16 iterator_mask);
    void
    gtk_plot_data_construct_iterator
    (GtkPlotData *data,
    GtkPlotIterator iter,
    gint npoints,
    guint16 iterator_mask);
| ## Draw last n points |
    void
    gtk_plot_data_paint
    (GtkPlotData *data);
    void
    gtk_plot_data_update
    (GtkPlotData *data);
    void
    gtk_plot_data_draw_points
    (GtkPlotData *data, gint n);
    void
    gtk_plot_data_draw_symbol
    (GtkPlotData *data,
    gdouble x, gdouble y)
    void
    gtk_plot_data_set_points
    (GtkPlotData *data,
    gdouble *x, gdouble *y,
    gdouble *dx, gdouble *dy,
    gint num_points);
    void
    gtk_plot_data_get_points
    (GtkPlotData *data,
    gdouble **x, gdouble **y,
    gdouble **dx, gdouble **dy,
    gint *num_points);
    void
    gtk_plot_data_get_point
    (GtkPlotData *data,
    gint n,
    gdouble *x, gdouble *y,
    gdouble *z, gdouble *a,
    gdouble *dx, gdouble *dy,
    gdouble *dz, gdouble *da,
    gchar **label,
    gboolean *error);
    void
    gtk_plot_data_set_x
    (GtkPlotData *data,
    gdouble *x);
    void
    gtk_plot_data_set_y
    (GtkPlotData *data,
    gdouble *y);
    void
    gtk_plot_data_set_z
    (GtkPlotData *data,
    gdouble *z);
    void
    gtk_plot_data_set_a
    (GtkPlotData *data,
    gdouble *z);
    void
    gtk_plot_data_set_dx
    (GtkPlotData *data,
    gdouble *dx);
    void
    gtk_plot_data_set_dy
    (GtkPlotData *data,
    gdouble *dy);
    void
    gtk_plot_data_set_dz
    (GtkPlotData *data,
    gdouble *dz);
    void
    gtk_plot_data_set_da
    (GtkPlotData *data,
    gdouble *da);
    void
    gtk_plot_data_set_a_scale
    (GtkPlotData *data,
    gdouble a_scale);
    void
    gtk_plot_data_set_labels
    (GtkPlotData *data,
    gchar **labels);
    gdouble *
    gtk_plot_data_get_x
    (GtkPlotData *data,
    gint *num_points);
    gdouble *
    gtk_plot_data_get_y
    (GtkPlotData *data,
    gint *num_points);
    gdouble *
    gtk_plot_data_get_z
    (GtkPlotData *data,
    gint *num_points);
    gdouble *
    gtk_plot_data_get_a
    (GtkPlotData *data,
    gint *num_points);
    gdouble *
    gtk_plot_data_get_dx
    (GtkPlotData *data,
    gint *num_points);
    gdouble *
    gtk_plot_data_get_dy
    (GtkPlotData *data,
    gint *num_points);
    gdouble *
    gtk_plot_data_get_dz
    (GtkPlotData *data,
    gint *num_points);
    gdouble *
    gtk_plot_data_get_da
    (GtkPlotData *data,
    gint *num_points);
    gdouble
    gtk_plot_data_get_a_scale
    (GtkPlotData *data);
    gchar **
    gtk_plot_data_get_labels
    (GtkPlotData *data,
    gboolean *show_labels);
    void
    gtk_plot_data_show_labels
    (GtkPlotData *data,
    gboolean show_labels);
    void
    gtk_plot_data_labels_set_attributes
    (GtkPlotData *data,
    const gchar *font,
    gint height,
    gint angle,
    const GdkColor *foreground,
    const GdkColor *background);
    void
    gtk_plot_data_set_numpoints
    (GtkPlotData *data,
    gint num_points);
    gint
    gtk_plot_data_get_numpoints
    (GtkPlotData *data);
    void
    gtk_plot_data_set_symbol
    (GtkPlotData *data,
    GtkPlotSymbolType type,
    GtkPlotSymbolStyle style,
    gint size,
    gfloat line_width,
    const GdkColor *color,
    const GdkColor *border_color);
    void
    gtk_plot_data_get_symbol
    (GtkPlotData *data,
    GtkPlotSymbolType *type,
    GtkPlotSymbolStyle *style,
    gint *size,
    gfloat *line_width,
    GdkColor *color,
    GdkColor *border_color);
    void
    gtk_plot_data_set_connector
    (GtkPlotData *data,
    GtkPlotConnector connector);
    gint
    gtk_plot_data_get_connector
    (GtkPlotData *data);
    void
    gtk_plot_data_set_line_attributes
    (GtkPlotData *data,
    GtkPlotLineStyle style,
    gfloat width,
    const GdkColor *color);
    void
    gtk_plot_data_set_x_attributes
    (GtkPlotData *data,
    GtkPlotLineStyle style,
    gfloat width,
    const GdkColor *color);
    void
    gtk_plot_data_set_x_attributes
    (GtkPlotData *data,
    GtkPlotLineStyle style,
    gfloat width,
    const GdkColor *color);
    void
    gtk_plot_data_set_z_attributes
    (GtkPlotData *data,
    GtkPlotLineStyle style,
    gfloat width,
    const GdkColor *color);
    void
    gtk_plot_data_show_xerrbars
    (GtkPlotData *data);
    void
    gtk_plot_data_show_yerrbars
    (GtkPlotData *data);
    void
    gtk_plot_data_show_zerrbars
    (GtkPlotData *data);
    void
    gtk_plot_data_show_zerrbars
    (GtkPlotData *data);
    void
    gtk_plot_data_hide_yerrbars
    (GtkPlotData *data);
    void
    gtk_plot_data_hide_zerrbars
    (GtkPlotData *data);
    void
    gtk_plot_data_fill_area
    (GtkPlotData *data,
    gboolean fill); -
    gboolean
    gtk_plot_data_area_is_filled
    (GtkPlotData *data);
    void
    gtk_plot_data_show_legend
    (GtkPlotData *data);
    void
    gtk_plot_data_hide_legend
    (GtkPlotData *data);
    void
    gtk_plot_data_set_legend
    (GtkPlotData *dataset,
    const gchar *legend);
    void
    gtk_plot_data_set_legend_precision
    (GtkPlotData *dataset,
    gint precision);
    gint
    gtk_plot_data_set_legend_precision
    (GtkPlotData *dataset);
    void
    gtk_plot_data_set_name
    (GtkPlotData *data,
    const gchar *name);
    void
    gtk_plot_data_set_gradient_mask
    (GtkPlotData *data,
    gint mask);
    gint
    gtk_plot_data_get_gradient_mask
    (GtkPlotData *data);
    void
    gtk_plot_data_gradient_set_visible
    (GtkPlotData *data,
    gboolean visible);
    gboolean
    gtk_plot_data_gradient_visible
    (GtkPlotData *data);
void |
    gtk_plot_data_draw_gradient
    (GtkPlotData *data,
    gint x, gint y);
    void
    gtk_plot_data_gradient_autoscale_a
    (GtkPlotData *data);
    void
    gtk_plot_data_gradient_autoscale_da
    (GtkPlotData *data);
    void
    gtk_plot_data_gradient_autoscale_z
    (GtkPlotData *data);
    void
    gtk_plot_data_set_gradient_colors
    (GtkPlotData *data,
    const GdkColor *min,
    const GdkColor *max);
    void
    gtk_plot_data_get_gradient_colors
    (GtkPlotData *data,
    GdkColor *min,
    GdkColor *max);
    void
    gtk_plot_data_set_gradient
    (GtkPlotData *data,
    gdouble min,
    gdouble max,
    gint nlevels,
    gint nsublevels);
    void
    gtk_plot_data_get_gradient
    (GtkPlotData *data,
    gdouble *min,
    gdouble *max,
    gint *nlevels,
    gint *nsublevels);
    void
    gtk_plot_data_get_gradient_level
    (GtkPlotData *data,
    gdouble level,
    GdkColor *color);
    void
    gtk_plot_data_set_link
    (GtkPlotData *data,
    gpointer link);
    gpointer
    gtk_plot_data_get_link
    (GtkPlotData *data);
    void
    gtk_plot_data_remove_link
    (GtkPlotData *data);
| ## Markers |
    GtkPlotMarker *
    gtk_plot_data_add_marker
    (GtkPlotData *data,
    guint point);
    void
    gtk_plot_data_remove_marker
    (GtkPlotData *data);
    void
    gtk_plot_data_show_markers
    (GtkPlotData *data,
    gboolean show);
gboolean | gtk_plot_data_markers_visible | (GtkPlotData *data);

## Object Hierarchy

##
Args

## Signal Prototypes

    No signals

## Description

#### GtkPlotData is a 2d scientific plots widget for gtk+

##
Details

    No details

##
Screenshot

### gtk_plot_data_get_type ()

    GtkType gtk_plot_data_get_type (void);

Return |

##

### gtk_plot_data_new ()

    GtkWidget* gtk_plot_data_new (void);

Create a GtkPlotData widget.

Return | A GtkPlotData widget

### gtk_plot_data_new_function ()

    GtkWidget* gtk_plot_data_new_function (GtkPlotFunc function);

### gtk_plot_data_construct_function ()

    void gtk_plot_data_construct_function (GtkPlotData *data,
                                           GtkPlotFunc function);

Initialize the function for data widget.

data | A GtkPlotData widget
function | the function

### gtk_plot_data_new_iterator ()

    GtkWidget* gtk_plot_data_new_iterator (GtkPlotIterator iter,
                                           gint npoints,
                                           guint16 iterator_mask);

### gtk_plot_data_construct_iterator ()

    void gtk_plot_data_construct_iterator (GtkPlotData *data,
                                           GtkPlotIterator iter,
                                           gint npoints,
                                           guint16 iterator_mask);

### gtk_plot_data_paint ()

    void gtk_plot_data_paint (GtkPlotData *data);

### gtk_plot_data_update ()

    void gtk_plot_data_update (GtkPlotData *data);

### gtk_plot_data_draw_points ()

    void gtk_plot_data_draw_points (GtkPlotData *data,
                                    gint n);

### gtk_plot_canvas_grid_set_step ()

    void gtk_plot_canvas_grid_set_step (GtkPlotCanvas *canvas,
                                        gdouble step);

Set the step of the canvas grid

canvas | a GtkPlotCanvas widget
step | step of the grid

### gtk_plot_data_draw_symbol ()

    void gtk_plot_data_draw_symbol (GtkPlotData *data,
                                    gdouble x, gdouble y);

### gtk_plot_data_set_points ()

    void gtk_plot_data_set_points (GtkPlotData *data,
                                   gdouble *x, gdouble *y,
                                   gdouble *dx, gdouble *dy,
                                   gint num_points);

### gtk_plot_data_get_points ()

    void gtk_plot_data_get_points (GtkPlotData *data,
                                   gdouble **x, gdouble **y,
                                   gdouble **dx, gdouble **dy,
                                   gint *num_points);

### gtk_plot_data_get_point ()

    void gtk_plot_data_get_point (GtkPlotData *data,
                                  gint n,
                                  gdouble *x, gdouble *y,
                                  gdouble *z, gdouble *a,
                                  gdouble *dx, gdouble *dy,
                                  gdouble *dz, gdouble *da,
                                  gchar **label,
                                  gboolean *error);

### gtk_plot_data_set_x ()

    void gtk_plot_data_set_x (GtkPlotData *data,
                              gdouble *x);

### gtk_plot_data_set_y ()

    void gtk_plot_data_set_y (GtkPlotData *data,
                              gdouble *y);

### gtk_plot_data_set_z ()

    void gtk_plot_data_set_z (GtkPlotData *data,
                              gdouble *z);

### gtk_plot_data_set_a ()

    void gtk_plot_data_set_a (GtkPlotData *data,
                              gdouble *z);

### gtk_plot_data_set_dx ()

    void gtk_plot_data_set_dx (GtkPlotData *data,
                              gdouble *dx);

### gtk_plot_data_set_dy ()

    void gtk_plot_data_set_dy (GtkPlotData *data,
                              gdouble *dy);

### gtk_plot_data_set_dz ()

    void gtk_plot_data_set_dz (GtkPlotData *data,
                              gdouble *dz);

### gtk_plot_data_set_da ()

    void gtk_plot_data_set_da (GtkPlotData *data,
                              gdouble *da);

### gtk_plot_data_set_a_scale ()

    void gtk_plot_data_set_a_scale (GtkPlotData *data,
                                    gdouble a_scale);

### gtk_plot_data_set_labels ()

    void gtk_plot_data_set_labels (GtkPlotData *data,
                                   gchar **labels);

### gtk_plot_data_get_x ()

    gdouble * gtk_plot_data_get_x (GtkPlotData *data,
                                   gint *num_points);

### gtk_plot_data_get_y ()

    gdouble * gtk_plot_data_get_y (GtkPlotData *data,
                                   gint *num_points);

### gtk_plot_data_get_z ()

    gdouble * gtk_plot_data_get_z (GtkPlotData *data,
                                   gint *num_points);

### gtk_plot_data_get_a ()

    gdouble * gtk_plot_data_get_a (GtkPlotData *data,
                                   gint *num_points);

### gtk_plot_data_get_dx ()

    gdouble * gtk_plot_data_get_dx (GtkPlotData *data,
                                   gint *num_points);

### gtk_plot_data_get_dy ()

    gdouble * gtk_plot_data_get_dy (GtkPlotData *data,
                                   gint *num_points);

### gtk_plot_data_get_dz ()

    gdouble * gtk_plot_data_get_dz (GtkPlotData *data,
                                   gint *num_points);

### gtk_plot_data_get_da ()

    gdouble * gtk_plot_data_get_da (GtkPlotData *data,
                                   gint *num_points);

### gtk_plot_data_get_a_scale ()

    gdouble gtk_plot_data_get_a_scale (GtkPlotData *data);

### gtk_plot_data_get_labels ()

    gchar ** gtk_plot_data_get_labels (GtkPlotData *data,
                                       gboolean *show_labels);

### gtk_plot_data_show_labels ()

    void gtk_plot_data_show_labels (GtkPlotData *data,
                                    gboolean show_labels);

### gtk_plot_data_labels_set_attributes ()

    void gtk_plot_data_labels_set_attributes (GtkPlotData *data,
                                              const gchar *font,
                                              gint height,
                                              gint angle,
                                              const GdkColor *foreground,
                                              const GdkColor *background);

### gtk_plot_data_set_numpoints ()

    void gtk_plot_data_set_numpoints (GtkPlotData *data,
                                      gint num_points);

### gtk_plot_canvas_get_position ()

    void gtk_plot_canvas_get_position (GtkPlotCanvas *plot_canvas,
                                       gint x, gint y,
                                       gdouble *px, gdouble *py);

plot_canvas |
x,y |
px,py |

### gtk_plot_data_get_numpoints ()

    gint gtk_plot_data_get_numpoints (GtkPlotData *data);

### gtk_plot_data_set_symbol ()

    void gtk_plot_data_set_symbol (GtkPlotData *data,
                                  GtkPlotSymbolType type,
                                  GtkPlotSymbolStyle style,
                                  gint size,
                                  gfloat line_width,
                                  const GdkColor *color,
                                  const GdkColor *border_color);

### gtk_plot_data_get_symbol ()

    void gtk_plot_data_get_symbol (GtkPlotData *data,
                                   GtkPlotSymbolType *type,
                                   GtkPlotSymbolStyle *style,
                                   gint *size,
                                   gfloat *line_width,
                                   GdkColor *color,
                                   GdkColor *border_color);

### gtk_plot_data_set_connector ()

    void gtk_plot_data_set_connector (GtkPlotData *data,
                                      GtkPlotConnector connector);

### gtk_plot_data_get_connector ()

    gint gtk_plot_data_get_connector (GtkPlotData *data);

### gtk_plot_data_set_line_attributes ()

    void gtk_plot_data_set_line_attributes (GtkPlotData *data,
                                           GtkPlotLineStyle style,
                                           gfloat width,
                                           const GdkColor *color);

### gtk_plot_data_get_line_attributes ()

    void gtk_plot_data_get_line_attributes (GtkPlotData *data,
                                            GtkPlotLineStyle *style,
                                            gfloat *width,
                                            GdkColor *color);

### gtk_plot_data_set_x_attributes ()

    void gtk_plot_data_set_x_attributes (GtkPlotData *data,
                                         GtkPlotLineStyle style,
                                         gfloat width,
                                         const GdkColor *color);

|

### gtk_plot_data_set_y_attributes ()

    void gtk_plot_data_set_y_attributes (GtkPlotData *data,
                                         GtkPlotLineStyle style,
                                         gfloat width,
                                         const GdkColor *color);

### gtk_plot_data_set_z_attributes ()

    void gtk_plot_data_set_z_attributes (GtkPlotData *data,
                                         GtkPlotLineStyle style,
                                         gfloat width,
                                         const GdkColor *color);

### gtk_plot_data_show_xerrbars ()

    void gtk_plot_data_show_xerrbars (GtkPlotData *data);

### gtk_plot_data_show_yerrbars ()

    void gtk_plot_data_show_yerrbars (GtkPlotData *data);

### gtk_plot_data_show_zerrbars ()

    void gtk_plot_data_show_zerrbars (GtkPlotData *data);

### gtk_plot_data_hide_xerrbars ()

    void gtk_plot_data_hide_xerrbars (GtkPlotData *data);

### gtk_plot_data_hide_yerrbars ()

    void gtk_plot_data_hide_yerrbars (GtkPlotData *data);

### gtk_plot_data_hide_zerrbars ()

    void gtk_plot_data_hide_zerrbars (GtkPlotData *data);

### gtk_plot_data_fill_area ()

    void gtk_plot_data_fill_area (GtkPlotData *data,
                                  gboolean fill);

### gtk_plot_data_area_is_filled ()

    gboolean gtk_plot_data_area_is_filled (GtkPlotData *data);

### gtk_plot_data_show_legend ()

    void gtk_plot_data_show_legend (GtkPlotData *data);

### gtk_plot_data_hide_legend ()

    void gtk_plot_data_hide_legend (GtkPlotData *data);

### gtk_plot_data_set_legend ()

    void gtk_plot_data_set_legend (GtkPlotData *dataset,
                                   const gchar *legend);

### gtk_plot_data_set_legend_precision ()

    void gtk_plot_data_set_legend_precision (GtkPlotData *dataset,
                                             gint precision);

### gtk_plot_data_get_legend_precision ()

    gint gtk_plot_data_get_legend_precision (GtkPlotData *dataset);

### gtk_plot_data_set_name ()

    void gtk_plot_data_set_name (GtkPlotData *data,
                                 const gchar *name);

### gtk_plot_data_set_gradient_mask ()

    void gtk_plot_data_set_gradient_mask (GtkPlotData *data,
                                         gint mask);

### gtk_plot_data_get_gradient_mask ()

    gint gtk_plot_data_get_gradient_mask (GtkPlotData *data);

### gtk_plot_data_gradient_set_visible ()

    void gtk_plot_data_gradient_set_visible (GtkPlotData *data,
                                             gboolean visible);

### gtk_plot_data_gradient_visible ()

    gboolean gtk_plot_data_gradient_visible (GtkPlotData *data);

### gtk_plot_data_draw_gradient ()

    void gtk_plot_data_draw_gradient (GtkPlotData *data,
                                      gint x, gint y);

### gtk_plot_data_gradient_autoscale_a ()

    void gtk_plot_data_gradient_autoscale_a (GtkPlotData *data);

### gtk_plot_data_gradient_autoscale_da ()

    void gtk_plot_data_gradient_autoscale_da (GtkPlotData *data);

### gtk_plot_data_gradient_autoscale_z ()

    void gtk_plot_data_gradient_autoscale_z (GtkPlotData *data);

### gtk_plot_data_set_gradient_colors ()

    void gtk_plot_data_set_gradient_colors (GtkPlotData *data,
                                            const GdkColor *min,
                                            const GdkColor *max);

### gtk_plot_data_get_gradient_colors ()

    void gtk_plot_data_get_gradient_colors (GtkPlotData *data,
                                            GdkColor *min,
                                            GdkColor *max);

### gtk_plot_data_set_gradient ()

    void gtk_plot_data_set_gradient (GtkPlotData *data,
                                     gdouble min,
                                     gdouble max,
                                     gint nlevels,
                                     gint nsublevels);

### gtk_plot_data_get_gradient ()

    void gtk_plot_data_get_gradient (GtkPlotData *data,
                                     gdouble *min,
                                     gdouble *max,
                                     gint *nlevels,
                                     gint *nsublevels);

### gtk_plot_data_get_gradient_level ()

    void gtk_plot_data_get_gradient_level (GtkPlotData *data,
                                           gdouble level,
                                           GdkColor *color);

### gtk_plot_data_set_link ()

    void gtk_plot_data_set_link (GtkPlotData *data,
                                 gpointer link);

### gtk_plot_data_get_link ()

    gpointer gtk_plot_data_get_link (GtkPlotData *data);

### gtk_plot_data_remove_link ()

    void gtk_plot_data_remove_link (GtkPlotData *data);

### gtk_plot_data_add_marker ()

    GtkPlotMarker * gtk_plot_data_add_marker (GtkPlotData *data,
                                             guint point);

### gtk_plot_data_remove_marker ()

    gboolean gtk_plot_data_remove_marker (GtkPlotData *data,
                                          GtkPlotMarker *marker);

### gtk_plot_data_remove_markers ()

    void gtk_plot_data_remove_markers (GtkPlotData *data);

### gtk_plot_data_show_markers ()

    void gtk_plot_data_show_markers (GtkPlotData *data,
                                    gboolean show);

### gtk_plot_data_markers_visible ()

    gboolean gtk_plot_data_markers_visible (GtkPlotData *data);

| Home |  |