Synopsis
#include <giwxyplot.h>
enum GiwXYPlotGrid;
enum GiwXYPlotDataStyle;
GiwXYPlot;
GtkWidget* giw_xyplot_new (void);
void giw_xyplot_set_range (GiwXYPlot *xyplot,
gdouble xmin,
gdouble xmax,
gdouble ymin,
gdouble ymax);
void giw_xyplot_set_autorange (GiwXYPlot *xyplot,
XYPlotData *data);
void giw_xyplot_get_range (GiwXYPlot *xyplot,
gdouble *xmin,
gdouble *xmax,
gdouble *ymin,
gdouble *ymax);
void giw_xyplot_get_point (GiwXYPlot *xyplot,
guint x,
guint y,
gdouble *xv,
gdouble *yv);
void giw_xyplot_set_ticks (GiwXYPlot *xyplot,
guint hmajor,
guint hminor,
guint vmajor,
guint vminor);
void giw_xyplot_get_ticks (GiwXYPlot *xyplot,
guint *hmajor,
guint *hminor,
guint *vmajor,
guint *vminor);
void giw_xyplot_set_legends_digits (GiwXYPlot *xyplot,
guint digits);
guint giw_xyplot_get_legends_digits (GiwXYPlot *xyplot);
void giw_xyplot_set_background_color (GiwXYPlot *xyplot,
GdkColor color);
void giw_xyplot_set_grids_attributes (GiwXYPlot *xyplot,
GiwXYPlotGrid grid,
GdkColor color,
gint line_width,
GdkLineStyle line_style);
void giw_xyplot_get_grids_attributes (GiwXYPlot *xyplot,
GiwXYPlotGrid grid,
GdkColor *color,
gint *line_width,
GdkLineStyle *line_style);
void giw_xyplot_enable_grids (GiwXYPlot *xyplot,
GiwXYPlotGrid grid,
gboolean enable);
void giw_xyplot_add_data (GiwXYPlot *xyplot,
XYPlotData *data);
void giw_xyplot_remove_data (GiwXYPlot *xyplot,
XYPlotData *data);
void giw_xyplot_configure_mouse_zoom (GiwXYPlot *xyplot,
gboolean enabled,
guint button);
void giw_xyplot_configure_wheel_zoom (GiwXYPlot *xyplot,
gboolean enabled,
gdouble factor);
void giw_xyplot_configure_mouse_displace (GiwXYPlot *xyplot,
gboolean enabled,
guint button);
void giw_xyplot_configure_mouse_autorange
(GiwXYPlot *xyplot,
gboolean enabled,
guint button);
Details
enum GiwXYPlotGrid
typedef enum
{
GIW_XYPLOT_HMAJOR_GRID,
GIW_XYPLOT_HMINOR_GRID,
GIW_XYPLOT_VMAJOR_GRID,
GIW_XYPLOT_VMINOR_GRID
} GiwXYPlotGrid;
enum GiwXYPlotDataStyle
typedef enum{
GIW_XYPLOT_DATA_LINES,
GIW_XYPLOT_DATA_POINTS,
GIW_XYPLOT_DATA_LINES_AND_POINTS
}GiwXYPlotDataStyle;
GiwXYPlot
typedef struct _GiwXYPlot GiwXYPlot;
giw_xyplot_new ()
GtkWidget* giw_xyplot_new (void);
giw_xyplot_set_autorange ()
void giw_xyplot_set_autorange (GiwXYPlot *xyplot,
XYPlotData *data);
giw_xyplot_set_ticks ()
void giw_xyplot_set_ticks (GiwXYPlot *xyplot,
guint hmajor,
guint hminor,
guint vmajor,
guint vminor);
xyplot : |
|
hmajor : |
|
hminor : |
|
vmajor : |
|
vminor : |
|
giw_xyplot_get_ticks ()
void giw_xyplot_get_ticks (GiwXYPlot *xyplot,
guint *hmajor,
guint *hminor,
guint *vmajor,
guint *vminor);
xyplot : |
|
hmajor : |
|
hminor : |
|
vmajor : |
|
vminor : |
|
giw_xyplot_set_legends_digits ()
void giw_xyplot_set_legends_digits (GiwXYPlot *xyplot,
guint digits);
giw_xyplot_get_legends_digits ()
guint giw_xyplot_get_legends_digits (GiwXYPlot *xyplot);
giw_xyplot_set_background_color ()
void giw_xyplot_set_background_color (GiwXYPlot *xyplot,
GdkColor color);
giw_xyplot_add_data ()
void giw_xyplot_add_data (GiwXYPlot *xyplot,
XYPlotData *data);
giw_xyplot_remove_data ()
void giw_xyplot_remove_data (GiwXYPlot *xyplot,
XYPlotData *data);
giw_xyplot_configure_mouse_zoom ()
void giw_xyplot_configure_mouse_zoom (GiwXYPlot *xyplot,
gboolean enabled,
guint button);
xyplot : |
|
enabled : |
|
button : |
|
giw_xyplot_configure_wheel_zoom ()
void giw_xyplot_configure_wheel_zoom (GiwXYPlot *xyplot,
gboolean enabled,
gdouble factor);
xyplot : |
|
enabled : |
|
factor : |
|
giw_xyplot_configure_mouse_displace ()
void giw_xyplot_configure_mouse_displace (GiwXYPlot *xyplot,
gboolean enabled,
guint button);
xyplot : |
|
enabled : |
|
button : |
|
giw_xyplot_configure_mouse_autorange ()
void giw_xyplot_configure_mouse_autorange
(GiwXYPlot *xyplot,
gboolean enabled,
guint button);
xyplot : |
|
enabled : |
|
button : |
|