DrawOptionΒΆ
drawopt.spad line 1 [edit on github]
DrawOption allows the user to specify defaults for the creation and rendering of plots.
- adaptive: Boolean -> %
adaptive(b)turns adaptive 2D plotting on ifbistrue, or off ifbisfalse. This option is expressed in the formadaptive == b.
- clip: Boolean -> %
clip(b)turns 2D clipping on ifbistrue, or off ifbisfalse. This option is expressed in the formclip == b.
- clip: List Segment Float -> %
clip([l])provides ranges for user-defined clipping as specified in the listl. This option is expressed in the formclip == [l].
- coerce: % -> OutputForm
from CoercibleTo OutputForm
- colorFunction: ((DoubleFloat, DoubleFloat) -> DoubleFloat) -> %
colorFunction(f(u, v))specifies the color for three dimensional plots as a function based upon the two parametric variables. This option is expressed in the formcolorFunction == f(u, v).
- colorFunction: ((DoubleFloat, DoubleFloat, DoubleFloat) -> DoubleFloat) -> %
colorFunction(f(x, y, z))specifies the color for three dimensional plots as a function ofx,y, andzcoordinates. This option is expressed in the formcolorFunction == f(x, y, z).
- colorFunction: (DoubleFloat -> DoubleFloat) -> %
colorFunction(f(z))specifies the color based upon thez-component of three dimensional plots. This option is expressed in the formcolorFunction == f(z).
- coord: (Point DoubleFloat -> Point DoubleFloat) -> %
coord(p)specifies a change of coordinates of pointp. This option is expressed in the formcoord == p.
- coordinates: (Point DoubleFloat -> Point DoubleFloat) -> %
coordinates(p)specifies a change of coordinate systems of pointp. This option is expressed in the formcoordinates == p.
- curveColor: Float -> %
curveColor(v)specifies a color,v, for 2D graph curves. This option is expressed in the formcurveColor == v.
- curveColor: Palette -> %
curveColor(p)specifies a color index for 2D graph curves from the spadcolors palettep. This option is expressed in the formcurveColor ==p.
- latex: % -> String
from SetCategory
- option?: (List %, Symbol) -> Boolean
option?()is not to be used at the top level; option? internally returnstruefor drawing options which are indicated in a draw command, orfalsefor those which are not.
- option: (List %, Symbol) -> Union(Any, failed)
option()is not to be used at the top level; option determines internally which drawing options are indicated in a draw command.
- pointColor: Float -> %
pointColor(v)specifies a color,v, for 2D graph points. This option is expressed in the formpointColor == v.
- pointColor: Palette -> %
pointColor(p)specifies a color index for 2D graph points from the spadcolors palettep. This option is expressed in the formpointColor == p.
- range: List Segment Float -> %
range([l])provides a user-specified rangel. This option is expressed in the formrange == [l].
- range: List Segment Fraction Integer -> %
range([i])provides a user-specified rangei. This option is expressed in the formrange == [i].
- ranges: List Segment Float -> %
ranges(l)provides a list of user-specified rangesl. This option is expressed in the formranges == l.
- space: ThreeSpace DoubleFloat -> %
space specifiesthe space into which we will draw. If none is given then a new space is created.
- style: String -> %
style(s)specifies the drawing style in which the graph will be plotted by the indicated strings. This option is expressed in the formstyle == s.
- title: String -> %
title(s)specifies a title for a plot by the indicated strings. This option is expressed in the formtitle == s.
- toScale: Boolean -> %
toScale(b)specifies whether or not a plot is to be drawn to scale; ifbistrueit is drawn to scale, ifbisfalseit is not. This option is expressed in the formtoScale == b.
- tubePoints: PositiveInteger -> %
tubePoints(n)specifies the number of points,n, defining the circle which creates the tube around a 3D curve, the default is 6. This option is expressed in the formtubePoints == n.
- tubeRadius: Float -> %
tubeRadius(r)specifies a radius,r, for a tube plot around a 3D curve; is expressed in the formtubeRadius == 4.
- unit: List Float -> %
unit(lf)will mark off the units according to the indicated listlf. This option is expressed in the formunit == [f1, f2].
- var1Steps: PositiveInteger -> %
var1Steps(n)indicates the number of subdivisions,n, of the first range variable. This option is expressed in the formvar1Steps == n.
- var2Steps: PositiveInteger -> %
var2Steps(n)indicates the number of subdivisions,n, of the second range variable. This option is expressed in the formvar2Steps == n.
- viewpoint: Record(theta: DoubleFloat, phi: DoubleFloat, scale: DoubleFloat, scaleX: DoubleFloat, scaleY: DoubleFloat, scaleZ: DoubleFloat, deltaX: DoubleFloat, deltaY: DoubleFloat) -> %
viewpoint(vp)creates a viewpoint data structure corresponding to the list of values. The values are interpreted as [theta, phi, scale, scaleX, scaleY, scaleZ, deltaX, deltaY]. This option is expressed in the formviewpoint == ls.