ViewportPackageΒΆ
viewpack.spad line 1 [edit on github]
ViewportPackage provides functions for creating GraphImages and TwoDimensionalViewports from lists of lists of points.
- coerce: GraphImage -> TwoDimensionalViewport
coerce(gi)
converts the indicated GraphImage,gi
, into the TwoDimensionalViewport form.
- drawCurves: (List List Point DoubleFloat, List DrawOption) -> TwoDimensionalViewport
drawCurves([[p0], [p1], ..., [pn]], [options])
creates a TwoDimensionalViewport from the list of lists of points,p0
throughtpn
, using the options specified in the listoptions
.
- drawCurves: (List List Point DoubleFloat, Palette, Palette, PositiveInteger, List DrawOption) -> TwoDimensionalViewport
drawCurves([[p0], [p1], ..., [pn]], ptColor, lineColor, ptSize, [options])
creates a TwoDimensionalViewport from the list of lists of points,p0
throughtpn
, using the options specified in the listoptions
. The point color is specified byptColor
, the line color is specified bylineColor
, and the point size is specified byptSize
.
- graphCurves: (List List Point DoubleFloat, List DrawOption) -> GraphImage
graphCurves([[p0], [p1], ..., [pn]], [options])
creates a GraphImage from the list of lists of points,p0
throughtpn
, using the options specified in the listoptions
.
- graphCurves: (List List Point DoubleFloat, Palette, Palette, PositiveInteger, List DrawOption) -> GraphImage
graphCurves([[p0], [p1], ..., [pn]], ptColor, lineColor, ptSize, [options])
creates a GraphImage from the list of lists of points,p0
throughtpn
, using the options specified in the listoptions
. The graph point color is specified byptColor
, the graph line color is specified bylineColor
, and the size of the points is specified byptSize
.
- graphCurves: List List Point DoubleFloat -> GraphImage
graphCurves([[p0], [p1], ..., [pn]])
creates a GraphImage from the list of lists of points indicated byp0
throughpn
.