GOffice.GraphAxis¶
- Subclasses:
None
Methods¶
- Inherited:
GOffice.GraphAxisBase (7), GOffice.GraphObject (40), GObject.Object (37), GOffice.StyledObject (8), GOffice.GraphDataset (7), GOffice.Persist (2)
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w |
The user assigned format to use for non-discrete axis labels (XL format) |
||
r/w |
The name of the axis used as reference for ticks distance |
||
r/w |
Rotation of circular axis |
||
r/w |
The name of the color map |
||
r/w |
Real values are the displayed ones multipled by the display factor. |
||
r/w |
Scale from high to low rather than low to high |
||
r/w |
The name of the map for scaling |
||
r/w |
The way the axis ticks distance is evaluated |
||
r/w |
If an axis is used as reference, gives the ratio of the ticks distance, and if the metrix is absolute, the ticks distance. Defaults to 1.0 |
||
r/w |
The unit symbol for the absolute distance unit between ticks. Might be “cm” or “in” |
||
r/w |
Polar axis set unit |
||
r/w |
Position of the plot area at which the axis effective area ends, expressed as a percentage of the available position. Defaults to 1.0 |
||
r/w |
Position of the plot area at which the axis effective area starts, expressed as a percentage of the available position. Defaults to 0.0 |
||
r/w |
Numerical type of this axis |
Signals¶
Fields¶
Class Details¶
- class GOffice.GraphAxis(**kwargs)¶
- Bases:
GOffice.GraphAxisBase
,GOffice.GraphDataset
,GOffice.Persist
- Abstract:
No
- add_contributor(contrib)¶
- Parameters:
contrib (
GOffice.GraphObject
) –GOffice.GraphObject
(can we relax this to use an interface ?)
Register contrib as taking part in the negotiation of self's bounds.
- bound_changed(contrib)¶
- Parameters:
contrib (
GOffice.GraphObject
) –GOffice.GraphObject
- clear_contributors()¶
- contributors()¶
- Returns:
the list of the axis contributors
- Return type:
- data_get_bounds(data, minimum, maximum)¶
- Parameters:
data (
GOffice.Data
) –minimum (
float
) –maximum (
float
) –
- del_contributor(contrib)¶
- Parameters:
contrib (
GOffice.GraphObject
) –GOffice.GraphObject
(can we relax this to use an interface ?)
contrib no longer takes part in the negotiation of self's bounds.
- get_atype()¶
- Return type:
- get_bounds()¶
- get_circular_rotation()¶
- Returns:
rotation of a circular
GOffice.GraphAxis
.- Return type:
- get_color_map()¶
- Returns:
the color map used by the axis if any.
- Return type:
Retrieves the
GOffice.GraphAxisColorMap
associated to the axis orNone
.
- get_color_scale()¶
- Returns:
the color scale used to display the axis colors for color and pseudo-3d axes.
- Return type:
Retrieves the
GOffice.GraphColorScale
associated to the axis orNone
.
- get_date_conv()¶
- Return type:
- get_effective_format()¶
- Returns:
the
GOffice.Format
used for the axis labels. Differs fromGOffice.GraphAxis.get_format
in that it never returns a general format (seeGOffice.Format.is_general
).- Return type:
- get_entry(i, user_defined)¶
- Parameters:
- Returns:
the
GOffice.value
of axis element i and sets user_defined or NaN on error- Return type:
- get_format()¶
- Returns:
the format assigned to self.
- Return type:
- get_grid_line(major)¶
- get_labels(plot_that_labeled_axis)¶
- Parameters:
plot_that_labeled_axis (
GOffice.GraphPlot
) – aGOffice.GraphPlot
- Returns:
the possibly
None
GOffice.Data
used as a label for this axis along with the plot that it was associated with- Return type:
- get_metrics()¶
- Return type:
- get_polar_unit()¶
- Returns:
unit of self if it’s a circular axis of a polar axis set, -1 otherwise.
- Return type:
- get_ref_axis()¶
- Returns:
the axis used to evaluate the length of self or
None
.- Return type:
New in version 0.10.17.
- get_ticks(ticks)¶
- Parameters:
ticks (
GOffice.GraphAxisTick
) – an array ofGOffice.GraphAxisTick
- Returns:
number of ticks
- Return type:
An accessor to self->ticks.
- is_center_on_ticks()¶
- is_discrete()¶
- set_bounds(minimum, maximum)¶
-
Sets axis bounds. If minimum or maximum are not finite values, corresponding bound remains unchanged.
- set_extents(start, stop)¶
-
Set axis exents. It’s a convenience function that sets axis bounds taking into account invert flag.
- set_format(fmt)¶
- Parameters:
fmt (
GOffice.Format
orNone
) –GOffice.Format
- Returns:
True
if things changed- Return type:
- set_polar_unit(unit)¶
- Parameters:
unit (
GOffice.GraphAxisPolarUnit
) –GOffice.GraphAxisPolarUnit
Sets unit of a circular axis. See
GOffice.GraphAxisPolarUnit
for valid values.
Property Details¶
- GOffice.GraphAxis.props.assigned_format_string_XL¶
-
The user assigned format to use for non-discrete axis labels (XL format)
- GOffice.GraphAxis.props.axis_ref¶
-
The name of the axis used as reference for ticks distance
- GOffice.GraphAxis.props.circular_rotation¶
-
Rotation of circular axis
- GOffice.GraphAxis.props.color_map_name¶
-
The name of the color map
- GOffice.GraphAxis.props.display_factor¶
-
Real values are the displayed ones multipled by the display factor.
- GOffice.GraphAxis.props.invert_axis¶
-
Scale from high to low rather than low to high
- GOffice.GraphAxis.props.map_name¶
-
The name of the map for scaling
- GOffice.GraphAxis.props.metrics¶
-
The way the axis ticks distance is evaluated
- GOffice.GraphAxis.props.metrics_ratio¶
-
If an axis is used as reference, gives the ratio of the ticks distance, and if the metrix is absolute, the ticks distance. Defaults to 1.0
- GOffice.GraphAxis.props.metrics_unit¶
-
The unit symbol for the absolute distance unit between ticks. Might be “cm” or “in”
- GOffice.GraphAxis.props.polar_unit¶
-
Polar axis set unit
- GOffice.GraphAxis.props.span_end¶
-
Position of the plot area at which the axis effective area ends, expressed as a percentage of the available position. Defaults to 1.0
- GOffice.GraphAxis.props.span_start¶
-
Position of the plot area at which the axis effective area starts, expressed as a percentage of the available position. Defaults to 0.0