Public Member Functions | |
def | __init__ |
def | __repr__ |
def | SVG |
Public Member Functions inherited from svgfig.Curve | |
def | __init__ |
def | __repr__ |
def | Path |
def | sample |
end nested class More... | |
def | subsample |
def | SVG |
Public Member Functions inherited from svgfig.Ticks | |
def | __init__ |
def | __repr__ |
def | compute_logminiticks |
def | compute_logticks |
def | compute_miniticks |
def | compute_ticks |
def | interpret |
def | orient_tickmark |
def | regular_miniticks |
def | SVG |
Static Public Attributes | |
dictionary | defaults = {"stroke-width":"0.25pt"} |
dictionary | text_defaults = {"stroke":"none", "fill":"black", "font-size":5} |
Static Public Attributes inherited from svgfig.Curve | |
dictionary | defaults = {} |
int | discontinuity_limit = 5 |
float | linearity_limit = 0.05 |
random_sampling = True | |
int | recursion_limit = 15 |
Static Public Attributes inherited from svgfig.Ticks | |
dictionary | defaults = {"stroke-width":"0.25pt"} |
float | minitick_end = 0.75 |
float | minitick_start = -0.75 |
int | text_angle = 0 |
dictionary | text_defaults = {"stroke":"none", "fill":"black", "font-size":5} |
float | text_start = 2.5 |
float | tick_end = 1.5 |
float | tick_start = -1.5 |
Additional Inherited Members | |
Public Attributes inherited from svgfig.Curve | |
attr | |
f | |
high | |
last_samples | |
loop | |
low | |
Public Attributes inherited from svgfig.Ticks | |
arrow_end | |
arrow_start | |
attr | |
f | |
high | |
labels | |
last_miniticks | |
logbase | |
low | |
miniticks | |
text_attr | |
ticks | |
Draw an axis with tick marks along a parametric curve. CurveAxis(f, low, high, ticks, miniticks, labels, logbase, arrow_start, arrow_end, text_attr, attribute=value) f required a Python callable or string in the form "f(t), g(t)", just like Curve low, high required left and right endpoints 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 (10 being the most common) 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
def svgfig.CurveAxis.__init__ | ( | self, | |
f, | |||
low, | |||
high, | |||
ticks = -10 , |
|||
miniticks = True , |
|||
labels = True , |
|||
logbase = None , |
|||
arrow_start = None , |
|||
arrow_end = None , |
|||
text_attr = {} , |
|||
attr | |||
) |
Definition at line 2827 of file svgfig.py.
References python.multivaluedict.dict, svgfig.Frame.text_defaults, and svgfig.Ticks.text_defaults.
def svgfig.CurveAxis.__repr__ | ( | self | ) |
Definition at line 2824 of file svgfig.py.
References svgfig.SVG.attr, svgfig.Path.attr, svgfig.Curve.attr, svgfig.Curve.f, svgfig.Curve.high, svgfig.Ticks.labels, svgfig.Curve.low, and svgfig.Ticks.ticks.
def svgfig.CurveAxis.SVG | ( | self, | |
trans = None |
|||
) |
Apply the transformation "trans" and return an SVG object.
Definition at line 2833 of file svgfig.py.
References svgfig.Line.arrow_end, svgfig.LineGlobal.arrow_end, svgfig.Ticks.arrow_end, and svgfig.Ticks.arrow_start.
|
static |
|
static |