GOffice.GraphAxisMap¶
Fields¶
None
Methods¶
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Details¶
- class GOffice.GraphAxisMap¶
- classmethod new(axis, offset, length)¶
- Parameters:
axis (
GOffice.GraphAxis
) – aGOffice.GraphAxis
offset (
float
) – start of plot area.length (
float
) – length of plot area.
- Returns:
a newly allocated
GOffice.GraphAxisMap
.- Return type:
Creates a
GOffice.GraphAxisMap
for data mapping to plot window. offset and length are optional parameters to be used withGOffice.GraphAxisMap.to_view
in order to translates data coordinates into canvas space.
- _(value)¶
- Parameters:
value (
float
) –GOffice.value
to map to plot space.- Returns:
mapped
GOffice.value
.- Return type:
Converts value to plot coordinates. A
GOffice.value
in [0,1.0] range means a data within axis bounds.
- derivative_to_view(value)¶
- finite(value)¶
- Parameters:
value (
float
) –GOffice.value
to test- Returns:
True
ifGOffice.value
means something- Return type:
Tests whether value is valid for the given self.
- free()¶
Frees
GOffice.GraphAxisMap
object.
- from_view(value)¶
- Parameters:
value (
float
) –GOffice.value
to unmap from canvas space.- Returns:
GOffice.value
in data coordinates- Return type:
Converts
GOffice.value
from canvas space to data space.
- get_baseline()¶
- Returns:
the baseline for self, in view coordinates, clipped to offset and offset+length, where offset and length are the parameters of
GOffice.GraphAxisMap.new
.- Return type:
- get_bounds()¶
- Returns:
- minimum:
location to store minimum for this axis
- maximum:
location to store maximum for this axis
- Return type:
Gets bounds for the whole chart relative to the given axis map in data coordinates. If axis is invalid, it’ll return arbitrary bounds.
- get_extents()¶
- Returns:
- start:
location to store start for this axis
- stop:
location to store stop for this axis
- Return type:
Gets start and stop for the whole chart relative to the given axis map in data coordinates. If axis is not inverted, start = minimum and stop = maximum. If axis is invalid, it’ll return arbitrary bounds.
- get_real_bounds()¶
- Returns:
- minimum:
location to store minimum for this axis
- maximum:
location to store maximum for this axis
- Return type:
Gets bounds for the given axis map in data coordinates. If axis is invalid, it’ll return arbitrary bounds.
- get_real_extents()¶
- Returns:
- start:
location to store start for this axis
- stop:
location to store stop for this axis
- Return type:
Gets start and stop for the given axis map in data coordinates. If axis is not inverted, start = minimum and stop = maximum. If axis is invalid, it’ll return arbitrary bounds.
- is_valid()¶
-
Tests if self was correctly initialized, i.e. if bounds are valid.
- to_view(value)¶
- Parameters:
value (
float
) –GOffice.value
to map to canvas space- Returns:
a
GOffice.value
in canvas coordinates- Return type:
Converts
GOffice.value
from data space to canvas space, using offset and length parameters given toGOffice.GraphAxisMap.new
.