| Top |
| GtkWidget * | gwy_graph_axis_new () |
| void | gwy_graph_axis_set_logarithmic () |
| gboolean | gwy_graph_axis_is_logarithmic () |
| GtkPositionType | gwy_graph_axis_get_position () |
| void | gwy_graph_axis_set_auto () |
| void | gwy_graph_axis_request_range () |
| void | gwy_graph_axis_get_range () |
| void | gwy_graph_axis_get_requested_range () |
| gdouble | gwy_graph_axis_get_magnification () |
| const gchar * | gwy_graph_axis_get_magnification_string () |
| void | gwy_graph_axis_set_label () |
| const gchar * | gwy_graph_axis_get_label () |
| GwySIUnit * | gwy_graph_axis_get_si_unit () |
| void | gwy_graph_axis_set_si_unit () |
| void | gwy_graph_axis_enable_label_edit () |
| gdouble * | gwy_graph_axis_get_major_ticks () |
| gboolean | auto | Read / Write |
| char * | label | Read / Write |
| int | major-length | Read / Write |
| int | major-maxticks | Read / Write |
| int | major-thickness | Read / Write |
| int | minor-division | Read / Write |
| int | minor-length | Read / Write |
| int | minor-thickness | Read / Write |
GwyGraphAxis is used for drawing axis. It is namely used within GwyGraph widget, but it can be also used standalone. It plots a horizontal or vertical axis with major and minor ticks, with ranges in the requested interval.
void gwy_graph_axis_set_logarithmic (GwyGraphAxis *axis,gboolean is_logarithmic);
Sets logarithmic mode.
gboolean
gwy_graph_axis_is_logarithmic (GwyGraphAxis *axis);
Determines whether axis is set to be locarithmic.
GtkPositionType
gwy_graph_axis_get_position (GwyGraphAxis *axis);
Gets the position of an axis.
void gwy_graph_axis_set_auto (GwyGraphAxis *axis,gboolean is_auto);
Enables or disables automatic axis adjustmet.
void gwy_graph_axis_request_range (GwyGraphAxis *axis,gdouble min,gdouble max);
Sets the requisition of axis boundaries.
The axis will adjust the boundaries to satisfy requisition but still have reasonable tick values and spacing. Use
gwy_graph_axis_get_range() to obtain the boundaries the axis actually decided to use.
void gwy_graph_axis_get_range (GwyGraphAxis *axis,gdouble *min,gdouble *max);
Gets the actual boundaries of an axis.
void gwy_graph_axis_get_requested_range (GwyGraphAxis *axis,gdouble *min,gdouble *max);
Gets the requested boundaries of an axis.
gdouble
gwy_graph_axis_get_magnification (GwyGraphAxis *axis);
Gets the magnification value of a graph axis.
const gchar *
gwy_graph_axis_get_magnification_string
(GwyGraphAxis *axis);
Gets the magnification string of an axis.
void gwy_graph_axis_set_label (GwyGraphAxis *axis,const gchar *label);
Sets the label text of an axis.
const gchar *
gwy_graph_axis_get_label (GwyGraphAxis *axis);
Gets the label of an axis.
GwySIUnit *
gwy_graph_axis_get_si_unit (GwyGraphAxis *axis);
Obtains the axis unit.
void gwy_graph_axis_set_si_unit (GwyGraphAxis *axis,GwySIUnit *unit);
Sets the axis unit.
This will be appended automatically to the label.
void gwy_graph_axis_enable_label_edit (GwyGraphAxis *axis,gboolean enable);
Enables/disables user to change axis label by clicking on axis widget.
gdouble * gwy_graph_axis_get_major_ticks (GwyGraphAxis *axis,guint *nticks);
Gets the positions of major ticks of an axis.
“auto” property “auto” gboolean
Autoscale ticks with changing content.
Owner: GwyGraphAxis
Flags: Read / Write
Default value: TRUE
“label” property “label” char *
Axis label (without units).
Owner: GwyGraphAxis
Flags: Read / Write
Default value: ""
“major-length” property “major-length” int
Major ticks length.
Owner: GwyGraphAxis
Flags: Read / Write
Allowed values: [0,20]
Default value: 5
“major-maxticks” property “major-maxticks” int
Major ticks maximum number.
Owner: GwyGraphAxis
Flags: Read / Write
Allowed values: [0,50]
Default value: 5
“major-thickness” property “major-thickness” int
Major ticks thickness.
Owner: GwyGraphAxis
Flags: Read / Write
Allowed values: [0,20]
Default value: 5
“minor-division” property “minor-division” int
Minor ticks division.
Owner: GwyGraphAxis
Flags: Read / Write
Allowed values: [0,20]
Default value: 5
“minor-length” property “minor-length” int
Minor ticks length.
Owner: GwyGraphAxis
Flags: Read / Write
Allowed values: [0,20]
Default value: 5
“rescaled” signalvoid user_function (GwyGraphAxis *gwygraphaxis, gpointer user_data)
Flags: Run First