Public Member Functions | |
def | __init__ |
def | __repr__ |
def | SVG |
Public Attributes | |
aty | |
y1 | |
y2 | |
Static Public Attributes | |
dictionary | defaults = {"stroke-width":"0.25pt"} |
int | text_angle = 0 |
dictionary | text_defaults = {"stroke":"none", "fill":"black", "font-size":5, "dominant-baseline":"text-before-edge"} |
int | text_start = 1 |
Draws an x axis with tick marks. XAxis(xmin, xmax, aty, ticks, miniticks, labels, logbase, arrow_start, arrow_end, exclude, text_attr, attribute=value) xmin, xmax required the x range aty default=0 y position to draw the axis ticks default=-10 request ticks according to the standard tick specification (see help(Ticks)) miniticks default=True request miniticks according to the standard minitick specification labels True request tick labels according to the standard tick label specification logbase default=None if a number, the x 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 exclude default=None if a (low, high) pair, don't draw text labels within this range text_attr default={} SVG attributes for the text labels attribute=value pairs keyword list SVG attributes for all lines The exclude option is provided for Axes to keep text from overlapping where the axes cross. Normal users are not likely to need it.
def svgfig::XAxis::__init__ | ( | self, | |
xmin, | |||
xmax, | |||
aty = 0 , |
|||
ticks = -10 , |
|||
miniticks = True , |
|||
labels = True , |
|||
logbase = None , |
|||
arrow_start = None , |
|||
arrow_end = None , |
|||
exclude = None , |
|||
text_attr = {} , |
|||
attr | |||
) |
Definition at line 2978 of file svgfig.py.
02978 {}, **attr): 02979 self.aty = aty 02980 tattr = dict(self.text_defaults) 02981 tattr.update(text_attr) 02982 LineAxis.__init__(self, xmin, aty, xmax, aty, xmin, xmax, ticks, miniticks, labels, logbase, arrow_start, arrow_end, exclude, tattr, **attr) 02983
def svgfig::XAxis::__repr__ | ( | self | ) |
Reimplemented from svgfig::LineAxis.
def svgfig::XAxis::SVG | ( | self, | |
trans = None |
|||
) |
Apply the transformation "trans" and return an SVG object.
Reimplemented from svgfig::LineAxis.
dictionary svgfig::XAxis::defaults = {"stroke-width":"0.25pt"} [static] |
Reimplemented from svgfig::LineAxis.
int svgfig::XAxis::text_angle = 0 [static] |
Reimplemented from svgfig::Ticks.
dictionary svgfig::XAxis::text_defaults = {"stroke":"none", "fill":"black", "font-size":5, "dominant-baseline":"text-before-edge"} [static] |
Reimplemented from svgfig::LineAxis.
int svgfig::XAxis::text_start = 1 [static] |
Reimplemented from svgfig::Ticks.
Reimplemented from svgfig::Line.