Superclass for all graphics primatives that draw ticks,
miniticks, and tick labels. This class only draws the ticks.
Ticks(f, low, high, ticks, miniticks, labels, logbase, arrow_start,
arrow_end, text_attr, attribute=value)
f required parametric function along which ticks
will be drawn; has the same format as
the function used in Curve
low, high required range of the independent variable
ticks default=-10 request ticks according to the standard
tick specification (see below)
miniticks default=True request miniticks according to the
standard minitick specification (below)
labels True request tick labels according to the
standard tick label specification (below)
logbase default=None if a number, the axis is logarithmic with
ticks at the given base (usually 10)
arrow_start default=None if a new string identifier, draw an arrow
at the low-end of the axis, referenced by
that identifier; if an SVG marker object,
use that marker
arrow_end default=None if a new string identifier, draw an arrow
at the high-end of the axis, referenced by
that identifier; if an SVG marker object,
use that marker
text_attr default={} SVG attributes for the text labels
attribute=value pairs keyword list SVG attributes for the tick marks
Standard tick specification:
* True: same as -10 (below).
* Positive number N: draw exactly N ticks, including the endpoints. To
subdivide an axis into 10 equal-sized segments, ask for 11 ticks.
* Negative number -N: draw at least N ticks. Ticks will be chosen with
"natural" values, multiples of 2 or 5.
* List of values: draw a tick mark at each value.
* Dict of value, label pairs: draw a tick mark at each value, labeling
it with the given string. This lets you say things like {3.14159: "pi"}.
* False or None: no ticks.
Standard minitick specification:
* True: draw miniticks with "natural" values, more closely spaced than
the ticks.
* Positive number N: draw exactly N miniticks, including the endpoints.
To subdivide an axis into 100 equal-sized segments, ask for 101 miniticks.
* Negative number -N: draw at least N miniticks.
* List of values: draw a minitick mark at each value.
* False or None: no miniticks.
Standard tick label specification:
* True: use the unumber function (described below)
* Format string: standard format strings, e.g. "%5.2f" for 12.34
* Python callable: function that converts numbers to strings
* False or None: no labels
Definition at line 2320 of file svgfig.py.