The following classes are part of the module graph.axis.parter. Instances of the classes can be passed to the parter keyword argument of regular axes.
| tickdists=None, labeldists=None, extendtick=0, extendlabel=None, epsilon=1e-10) |
[2, 1] even numbers
will have ticks whereas subticks are placed at odd integer. The
items of tickdists might be strings, floats or tuples as
described for the pos parameter of class tick.
labeldists works equally for placing labels. When
labeldists is kept None, labels will be placed at each
tick position, but sublabels etc. will not be used. This copy
behaviour is also available vice versa and can be disabled by
an empty list.
extendtick can be set to a tick level for including the next
tick of that level when the data exceeds the range covered by the
ticks by more than epsilon. epsilon is taken relative
to the axis range. extendtick is disabled when set to
None or for fixed range axes. extendlabel works similar
to extendtick but for labels.
| ...) |
| variants=defaultvariants, extendtick=0, epsilon=1e-10) |
10. variants should be ordered that way, that the
number of ticks for a given range will decrease, hence the distances
between the ticks should increase within the variants list.
extendtick and epsilon have the same meaning as in
linear.
[[tick.rational((1, 1)),
tick.rational((1, 2))], [tick.rational((2, 1)), tick.rational((1,
1))], [tick.rational((5, 2)), tick.rational((5, 4))],
[tick.rational((5, 1)), tick.rational((5, 2))]]
| ...) |
| pres, exp) |
| tickpreexps=None, labelpreexps=None, extendtick=0, extendlabel=None, epsilon=1e-10) |
labelpreexps works equally for placing labels. When labelpreexps
is kept None, labels will be placed at each tick position,
but sublabels etc. will not be used. This copy behaviour is
also available vice versa and can be disabled by an empty
list.
extendtick, extendlabel and epsilon have the same meaning as in linear.
Some preexp instances for the use in logarithmic are available as instance variables (should be used read-only):
preexp([tick.rational((1, 1))], 100000)
preexp([tick.rational((1, 1))], 10000)
preexp([tick.rational((1, 1))], 1000)
preexp([tick.rational((1, 1))], 100)
preexp([tick.rational((1, 1))], 10)
preexp([tick.rational((1, 1)), tick.rational((2, 1)), tick.rational((5, 1))], 10)
preexp([tick.rational((1, 1)) for x in range(1, 10)], 10)
| ...) |
| variants=defaultvariants, extendtick=0, extendlabel=None, epsilon=1e-10) |
extendtick, extendlabel and epsilon have the same meaning as in linear.
[([log.pre1exp, log.pre1to9exp], [log.pre1exp,
log.pre125exp]), ([log.pre1exp, log.pre1to9exp], None),
([log.pre1exp2, log.pre1exp], None), ([log.pre1exp3,
log.pre1exp], None), ([log.pre1exp4, log.pre1exp], None),
([log.pre1exp5, log.pre1exp], None)]
| ...) |