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 through pn, using the options specified in the list options.

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 through pn, using the options specified in the list options. The point color is specified by ptColor, the line color is specified by lineColor, and the point size is specified by ptSize.

graphCurves: (List List Point DoubleFloat, List DrawOption) -> GraphImage

graphCurves([[p0], [p1], ..., [pn]], [options]) creates a GraphImage from the list of lists of points, p0 through pn, using the options specified in the list options.

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 through pn, using the options specified in the list options. The graph point color is specified by ptColor, the graph line color is specified by lineColor, and the size of the points is specified by ptSize.

graphCurves: List List Point DoubleFloat -> GraphImage

graphCurves([[p0], [p1], ..., [pn]]) creates a GraphImage from the list of lists of points indicated by p0 through pn.