|
ClassPlot
A Fig with a coordinate axis
(This page applies only to the 1.x branch of SVGFig.) class PlotActs like Fig, but draws a coordinate axis. You also need to supply plot ranges. ArgumentsPlot(xmin, xmax, ymin, ymax, obj, obj, obj..., keyword options...)
The drawing primatives must implement the SVG method, as described in the Fig documentation. Unlike Fig, Plot has an implicit coordinate transformation: from (xmin, xmax), (ymin, ymax) to its bounding box. This coordinate transformation (a window transformation) flips the direction of the y axis (SVG coordinates have y increasing downward, local Plot coordinates have y increasing upward). Any additional coordinate transformation, given through the "trans" keyword option (or given as an argument to the SVG method) is composed with Plot's implicit window transformation. The following are keyword options, with their default values:
Member dataThese data may be changed at any time. You do not need to make a list of all graphics before creating a Plot; you can create an empty Plot and append items to its d member.
SVG methodJust like Fig, Plot has an SVG method to convert its objects into SVG. All graphics primatives must supply a SVG method with the same arguments. |
Sign in to add a comment
