|
def | __init__ (self, obj, ax) |
|
def | sfrom (self) |
|
def | sfrom (self, value) |
|
def | sto (self) |
|
def | sto (self, value) |
|
def | sstep (self) |
|
def | sstep (self, value) |
|
int | scale (self) |
|
def | scale (self, value) |
|
def | limits (self) |
|
def | limits (self, limits) |
|
def | set_limits (self, begin=None, end=None, step=None) |
|
def | title (self) |
|
def | title (self, value) |
|
|
| layer |
|
| type |
|
| ax |
|
| scale |
|
| sfrom |
|
| sto |
|
| sstep |
|
This class represents an instance of Axis on a GLayer.
◆ limits() [1/2]
def originpro.graph.Axis.limits |
( |
|
self | ) |
|
axis scale limits
Parameters:
Returns:
(tuple) from, to, increment
Examples:
from, to, inc = ax.limits
◆ limits() [2/2]
def originpro.graph.Axis.limits |
( |
|
self, |
|
|
|
limits |
|
) |
| |
Property setter returns the scale limits (from` and `to) for the axis.
Parameters:
limits (tuple): (from, to)
Returns:
None
Examples:
ax.limits = (1, 10, 1)
◆ scale() [1/2]
int originpro.graph.Axis.scale |
( |
|
self | ) |
|
◆ scale() [2/2]
def originpro.graph.Axis.scale |
( |
|
self, |
|
|
|
value |
|
) |
| |
◆ set_limits()
def originpro.graph.Axis.set_limits |
( |
|
self, |
|
|
|
begin = None , |
|
|
|
end = None , |
|
|
|
step = None |
|
) |
| |
Sets scale from and to values for the axis
Parameters:
begin (float, tuple, list): The From value of limits, or specify [begin,end], or [begin,end,step]
end (float): The To value of limits. None leaves the value unchanged.
step (float): The Increment of the limits. None leaves the value unchanged.
Returns:
(tuple) from, to, increment
Examples:
ax.set_limits(step=0.3)
ax.set_limits(5, 15)
◆ sfrom() [1/2]
def originpro.graph.Axis.sfrom |
( |
|
self | ) |
|
get scale limit from value
◆ sfrom() [2/2]
def originpro.graph.Axis.sfrom |
( |
|
self, |
|
|
|
value |
|
) |
| |
set scale limit from value
◆ sstep() [1/2]
def originpro.graph.Axis.sstep |
( |
|
self | ) |
|
get scale limit increment
◆ sstep() [2/2]
def originpro.graph.Axis.sstep |
( |
|
self, |
|
|
|
value |
|
) |
| |
set scale limit increment
◆ sto() [1/2]
def originpro.graph.Axis.sto |
( |
|
self | ) |
|
◆ sto() [2/2]
def originpro.graph.Axis.sto |
( |
|
self, |
|
|
|
value |
|
) |
| |
◆ title() [1/2]
def originpro.graph.Axis.title |
( |
|
self | ) |
|
Property getter for axis title.
Parameters:
Returns:
(str) Title
Examples:
txt = ax.title
◆ title() [2/2]
def originpro.graph.Axis.title |
( |
|
self, |
|
|
|
value |
|
) |
| |
Property setter for axis title.
Parameters:
value (str): Title text
Returns:
(str) Title
Examples:
ax.title = 'X Axis'
The documentation for this class was generated from the following file: