Path represents an SVG path, an arbitrary set of curves and
straight segments. Unlike SVG("path", d="..."), Path stores
coordinates as a list of numbers, rather than a string, so that it is
transformable in a Fig.
Path(d, attribute=value)
d required path data
attribute=value pairs keyword list SVG attributes
See http://www.w3.org/TR/SVG/paths.html for specification of paths
from text.
Internally, Path data is a list of tuples with these definitions:
* ("Z/z",): close the current path
* ("H/h", x) or ("V/v", y): a horizontal or vertical line
segment to x or y
* ("M/m/L/l/T/t", x, y, global): moveto, lineto, or smooth
quadratic curveto point (x, y). If global=True, (x, y) should
not be transformed.
* ("S/sQ/q", cx, cy, cglobal, x, y, global): polybezier or
smooth quadratic curveto point (x, y) using (cx, cy) as a
control point. If cglobal or global=True, (cx, cy) or (x, y)
should not be transformed.
* ("C/c", c1x, c1y, c1global, c2x, c2y, c2global, x, y, global):
cubic curveto point (x, y) using (c1x, c1y) and (c2x, c2y) as
control points. If c1global, c2global, or global=True, (c1x, c1y),
(c2x, c2y), or (x, y) should not be transformed.
* ("A/a", rx, ry, rglobal, x-axis-rotation, angle, large-arc-flag,
sweep-flag, x, y, global): arcto point (x, y) using the
aforementioned parameters.
* (",/.", rx, ry, rglobal, angle, x, y, global): an ellipse at
point (x, y) with radii (rx, ry). If angle is 0, the whole
ellipse is drawn; otherwise, a partial ellipse is drawn.
Definition at line 1020 of file svgfig.py.