![]() |
![]() |
![]() |
Goffice Reference Manual | ![]() |
---|---|---|---|---|
GogAxis; GogAxisTick; enum GogAxisElemType; GogAxisType gog_axis_get_atype (GogAxis const *axis); gboolean gog_axis_is_center_on_ticks (GogAxis const *axis); gboolean gog_axis_is_discrete (GogAxis const *axis); gboolean gog_axis_is_inverted (GogAxis const *axis); gboolean gog_axis_get_bounds (GogAxis const *axis, double *minima, double *maxima); void gog_axis_set_bounds (GogAxis *axis, double minimum, double maximum); void gog_axis_set_extents (GogAxis *axis, double start, double stop); GOFormat* gog_axis_get_format (GogAxis const *axis); gboolean gog_axis_set_format (GogAxis *axis, GOFormat *fmt); unsigned gog_axis_get_ticks (GogAxis *axis, GogAxisTick **ticks); GOData* gog_axis_get_labels (GogAxis const *axis, GogPlot **plot_that_labeled_axis); double gog_axis_get_entry (GogAxis const *axis, GogAxisElemType i, gboolean *user_defined); void gog_axis_add_contributor (GogAxis *axis, GogObject *contrib); void gog_axis_del_contributor (GogAxis *axis, GogObject *contrib); GSListconst * gog_axis_contributors (GogAxis *axis); void gog_axis_clear_contributors (GogAxis *axis); void gog_axis_bound_changed (GogAxis *axis, GogObject *contrib); GogGridLine* gog_axis_get_grid_line (GogAxis *axis, gboolean major); double gog_axis_get_circular_rotation (GogAxis *axis); double gog_axis_get_polar_perimeter (GogAxis *axis); void gog_axis_set_polar_unit (GogAxis *axis, GogAxisPolarUnit unit); GogAxisPolarUnit gog_axis_get_polar_unit (GogAxis *axis);
"assigned-format-string-XL" gchar* : Read / Write "circular-rotation" gdouble : Read / Write "invert-axis" gboolean : Read / Write "map-name" gchar* : Read / Write "polar-unit" gchar* : Read / Write "type" gint : Read / Write
typedef enum { GOG_AXIS_ELEM_MIN = 0, GOG_AXIS_ELEM_MAX, GOG_AXIS_ELEM_MAJOR_TICK, GOG_AXIS_ELEM_MINOR_TICK, GOG_AXIS_ELEM_CROSS_POINT, GOG_AXIS_ELEM_MAX_ENTRY } GogAxisElemType;
gboolean gog_axis_is_center_on_ticks (GogAxis const *axis);
|
GogAxis |
Returns : |
TRUE if labels are centered on ticks when axis is discrete
|
gboolean gog_axis_is_discrete (GogAxis const *axis);
|
GogAxis |
Returns : |
TRUE if axis enumerates a set of discrete items, rather than a
continuous value
|
gboolean gog_axis_is_inverted (GogAxis const *axis);
|
GogAxis |
Returns : |
TRUE if axis is inverted.
|
gboolean gog_axis_get_bounds (GogAxis const *axis, double *minima, double *maxima);
return TRUE if the bounds stored in minima
and maxima
are sane
|
GogAxis |
|
result |
|
result |
Returns : |
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.
|
GogAxis |
|
axis low bound |
|
axis high bound |
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.
|
GogAxis |
|
axis start bound |
|
axis stop bound |
GOFormat* gog_axis_get_format (GogAxis const *axis);
|
GogAxis |
Returns : |
the format assigned to axis but does not add a reference.
|
gboolean gog_axis_set_format (GogAxis *axis, GOFormat *fmt);
Absorbs a reference to fmt
, and accepts NULL.
unsigned gog_axis_get_ticks (GogAxis *axis, GogAxisTick **ticks);
An accessor to axis->ticks
.
|
GogAxis |
|
an array of GogAxisTick |
Returns : |
number of ticks |
GOData* gog_axis_get_labels (GogAxis const *axis, GogPlot **plot_that_labeled_axis);
double gog_axis_get_entry (GogAxis const *axis, GogAxisElemType i, gboolean *user_defined);
|
GogAxis |
|
|
|
an optionally NULL pointr to gboolean |
Returns : |
the value of axis element i and sets user_defined or
NaN on error
|
void gog_axis_add_contributor (GogAxis *axis, GogObject *contrib);
Register contrib
as taking part in the negotiation of axis
's bounds.
void gog_axis_del_contributor (GogAxis *axis, GogObject *contrib);
contrib
no longer takes part in the negotiation of axis
's bounds.
GogGridLine* gog_axis_get_grid_line (GogAxis *axis, gboolean major);
|
|
|
|
Returns : |
double gog_axis_get_polar_perimeter (GogAxis *axis);
|
|
Returns : |
void gog_axis_set_polar_unit (GogAxis *axis, GogAxisPolarUnit unit);
Sets unit of a circular axis. See GogAxisPolarUnit for valid values.
|
a GogAxis |
|
GogAxisPolarUnit |
"assigned-format-string-XL"
property"assigned-format-string-XL" gchar* : Read / Write
The user assigned format to use for non-discrete axis labels (XL format).
Default value: "General"
"circular-rotation"
property"circular-rotation" gdouble : Read / Write
Rotation of circular axis.
Allowed values: [-180,180]
Default value: 0
"invert-axis"
property"invert-axis" gboolean : Read / Write
Scale from high to low rather than low to high.
Default value: FALSE
"map-name"
property"map-name" gchar* : Read / Write
The name of the map for scaling.
Default value: "linear"
"polar-unit"
property"polar-unit" gchar* : Read / Write
Polar axis set unit.
Default value: "Degrees"