Top | ![]() |
![]() |
![]() |
![]() |
Functions
Types and Values
enum | GogAxisElemType |
enum | GogAxisPolarUnit |
GogAxisTick | |
enum | GogAxisSet |
enum | GogAxisMetrics |
enum | GogAxisType |
Description
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".
Functions
gog_axis_add_contributor ()
void gog_axis_add_contributor (GogAxis *axis
,GogObject *contrib
);
Register contrib
as taking part in the negotiation of axis
's bounds.
gog_axis_del_contributor ()
void gog_axis_del_contributor (GogAxis *axis
,GogObject *contrib
);
contrib
no longer takes part in the negotiation of axis
's bounds.
gog_axis_get_bounds ()
gboolean gog_axis_get_bounds (GogAxis const *axis
,double *minima
,double *maxima
);
gog_axis_get_color_map ()
GogAxisColorMap const *
gog_axis_get_color_map (GogAxis *axis
);
Retrieves the GogAxisColorMap associated to the axis or NULL
.
gog_axis_get_color_scale ()
GogColorScale *
gog_axis_get_color_scale (GogAxis *axis
);
Retrieves the GogColorScale associated to the axis or NULL
.
gog_axis_get_effective_format ()
GOFormat *
gog_axis_get_effective_format (GogAxis const *axis
);
Returns
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]
gog_axis_get_effective_span ()
void gog_axis_get_effective_span (GogAxis const *axis
,double *start
,double *end
);
gog_axis_get_entry ()
double gog_axis_get_entry (GogAxis const *axis
,GogAxisElemType i
,gboolean *user_defined
);
gog_axis_get_labels ()
GOData * gog_axis_get_labels (GogAxis const *axis
,GogPlot **plot_that_labeled_axis
);
Returns
the possibly NULL GOData used as a label for this axis along with the plot that it was associated with.
[transfer none]
gog_axis_get_major_ticks_distance ()
double
gog_axis_get_major_ticks_distance (GogAxis const *axis
);
gog_axis_get_ticks ()
unsigned gog_axis_get_ticks (GogAxis *axis
,GogAxisTick **ticks
);
An accessor to axis->ticks
.
gog_axis_set_bounds ()
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.
gog_axis_set_extents ()
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.
gog_axis_set_format ()
gboolean gog_axis_set_format (GogAxis *axis
,GOFormat *fmt
);
Absorbs a reference to fmt
, and accepts NULL.
gog_axis_set_polar_unit ()
void gog_axis_set_polar_unit (GogAxis *axis
,GogAxisPolarUnit unit
);
Sets unit of a circular axis. See GogAxisPolarUnit for valid values.
Types and Values
enum GogAxisElemType
The indices of the GOData associated to the axis.
GogAxisTick
typedef struct { double position; GogAxisTickTypes type; GOString *str; } GogAxisTick;
enum GogAxisSet
Gives the needed axes for a plot.