| Top |
| enum | GogAxisElemType |
| enum | GogAxisPolarUnit |
| GogAxisTick | |
| enum | GogAxisSet |
| enum | GogAxisMetrics |
| enum | GogAxisType |
An axis of a GogPlot. The axis handles things like the bounds, ticks, and tick value formats. When used in plots with X/Y/Z axes, it can optionally have one GogLabel objects in the role "Label".
void gog_axis_add_contributor (GogAxis *axis,GogObject *contrib);
Register contrib
as taking part in the negotiation of axis
's bounds.
void gog_axis_data_get_bounds (GogAxis *axis,GOData *data,double *minimum,double *maximum);
void gog_axis_del_contributor (GogAxis *axis,GogObject *contrib);
contrib
no longer takes part in the negotiation of axis
's bounds.
gboolean gog_axis_get_bounds (GogAxis const *axis,double *minima,double *maxima);
GogAxisColorMap const *
gog_axis_get_color_map (GogAxis *axis);
Retrieves the GogAxisColorMap associated to the axis or NULL.
GogColorScale *
gog_axis_get_color_scale (GogAxis *axis);
Retrieves the GogColorScale associated to the axis or NULL.
GOFormat *
gog_axis_get_effective_format (GogAxis const *axis);
the GOFormat used for the axis labels. Differs from gog_axis_get_format in that it never returns a general format (see go_format_is_general).
[transfer none]
void gog_axis_get_effective_span (GogAxis const *axis,double *start,double *end);
double gog_axis_get_entry (GogAxis const *axis,GogAxisElemType i,gboolean *user_defined);
GOData * gog_axis_get_labels (GogAxis const *axis,GogPlot **plot_that_labeled_axis);
the possibly NULL GOData used as a label for this axis along with the plot that it was associated with.
[transfer none]
double
gog_axis_get_major_ticks_distance (GogAxis const *axis);
unsigned gog_axis_get_ticks (GogAxis *axis,GogAxisTick **ticks);
An accessor to axis->ticks
.
void gog_axis_set_bounds (GogAxis *axis,double minimum,double maximum);
Sets axis bounds. If minimum or maximum are not finite values, corresponding bound remains unchanged.
void gog_axis_set_extents (GogAxis *axis,double start,double stop);
Set axis exents. It's a convenience function that sets axis bounds taking into account invert flag.
void gog_axis_set_polar_unit (GogAxis *axis,GogAxisPolarUnit unit);
Sets unit of a circular axis. See GogAxisPolarUnit for valid values.
The indices of the GOData associated to the axis.
typedef struct {
double position;
GogAxisTickTypes type;
GOString *str;
} GogAxisTick;
Gives the needed axes for a plot.