Used within the plot statement argument (plotstatement) of the plotmaple command.
Entered as equations of the form option=value after the function(s), horizontal range, and vertical range. Example — plotmaple("plot(sin(x), x=-Pi..Pi, filled=true, title=`My Plot`)");
Available 2D Maple plot options
2D Maple plot option
Default setting (if applicable)
Description
adaptive
true
Used as adaptive=n or adaptive=true/false. When plotting a function over an interval, the interval is sampled at a number of points, controlled by sample and numpoints. Adaptive plotting, where necessary, subdivides these intervals to attempt to get a better representation of the function. This sub-sampling can be turned off by setting adaptive=false. By setting this option to a non-negative integer, you can control the maximum number of times sub-intervals are divided. (Note: with the default setting of true, intervals are subdivided at most 6 times in trying to improve the plot.)
axes
Used as axes=f. Specifies the type of axes. Choose from: boxed, frame, none, or normal.
axesfont
Used as axesfont=l. Font for the labels on the tick marks of the axes (specified in the same manner as font). Overrides values specified for font.
axis
Used as axis=t or axis[dir]=t. Specifies information about the x-axis and y-axis. axis=t applies the information given in t to both axes. axis[dir]=t allows the information to be specified for a single axis, with dir taking the value 1 (x-axis) or 2 (y-axis).
axiscoordinates
Cartesian
Used as axiscoordinates=t. The coordinate system used for display of the axes. The value t can be either polar or Cartesian. If t is polar, radial and angular axes are generated. This option is used together with coords=polar. (Note: this option is only available in the Standard interface. In the Classic interface, the coordinates are always Cartesian.)
caption
no caption
Used as caption=c. The caption printed under the plot (rendered in the image), and the alt-text readable by a screen reader for accessibility purposes. The value c can be a list consisting of the caption text followed by the font option.
captionfont
Used as captionfont=l. Specifies the font for a plot caption (specified in the same manner as font). Overrides values specified for font.
color
Used as color=n or colour=n. Specifies the color of the curves to be plotted. n should be spelled without capital letters (Example: blue, not Blue).
colorscheme
Used as colorscheme=t or colourscheme=t. Specifies a color scheme to a surface or set of points. t should be spelled without capital letters (Example: blue, not Blue).
coordinateview
Used as coordinateview=[r1..r2, a1..a2]. Used only when axiscoordinates=polar. When that's the case, r1..r2 specifies the radial range to be displayed, and a1..a2 specifies the angular range.
coords
Cartesian
Used as coords=cname. The coordinate system. The value cname is a choice from the list of coords. To generate polar axes with polar plots, use the axiscoordinates=polar option along with the coords=polar option.
discont
Used as discont=t. Allows detection of discontinuities.
filled
Used as filled=true/false or a list. If set to true, the area between the curve and the x-axis is given a solid color. The value of the filled option can also be a list containing 1 or more sub-options (color, style, or transparency), applied only to the filled area and not to the original curve itself. (Note: this option doesn't work with non-Cartesian coordinate systems.)
filledregions
Used as filledregions=true/false. If set to true, the regions defined by the curves are filled with different colors. Only valid with the contourplot, implicitplot, and listcontplot commands. (Note: this option doesn't work with non-Cartesian coordinate systems.)
font
Used as font=l. Defines the font for the plot title, caption, axis tickmark labels, and axis labels if no values have been specified for the axesfont, captionfont, labelfont, or titlefont options. The value l is a list of the form [family, style, size]. family can be: Times, Courier, Helvetica, or Symbol (Tip: family can also be any font name supported by your system, such as Tahoma or Lucida in Windows; Note: the first letter of the family value must be capitalized). style can be omitted or can be: roman, bold, italic, bolditalic, oblique, or boldoblique (Note: the Symbol family doesn't accept a style option). size is the point size to be used.
gridlines
false
Used as gridlines=true/false. When gridlines=true or gridlines is provided, default gridlines are drawn. For greater gridline control, use the axis option. If the axis option is also provided and contains a gridlines sub-option, that option overrides this gridlines option.
labeldirections
horizontal
Used as labeldirections=[x, y]. Specifies the direction in which labels are printed along the axes. The values of x and y must be horizontal or vertical.
labelfont
Used as labelfont=l. Font for the labels on the axes of the plot (specified in the same manner as font). Overrides values specified for font.
labels
The names of the variables in the original function to be plotted (if available)
Used as labels=[x, y]. Specifies labels for the axes. If labels aren't specified and there aren't available variable names in the plotted function, no labels are applied.
legend
Used as legend=s. Legend entry for a plot. If the plot function is being used to plot multiple curves, s can be a list containing a legend entry for each curve. (Note: a set can't be used, as it doesn't preserve the order of the legend entries.)
legendstyle
Used as legendstyle=s. Legend style for a plot (specified in the same manner as font). The value s is a list consisting of 1 or more sub-options, including font=f and location=loc. The location=loc sub-option allows values for loc to be: top, bottom, right, or left.
linestyle
solid
Used as linestyle=t. Controls the line style of curves. t can be an integer from 1 to 7, where each integer represents a line style, in order: (1) solid, (2) dot, (3) dash, (4) dashdot, (5) longdash, (6) spacedash, or (7) spacedot. t can also be the name of an available line style (Example: dash).
numpoints
200
Used as numpoints=n. Specifies the minimum number of points to be generated. (Note: plot employs an adaptive plotting scheme which automatically does more work where the function values don't lie close to a straight line, so plot often generates more than the minimum number of points.)
resolution
800
Used as resolution=n. Sets the horizontal display resolution of the device in pixels. n is used to determine when the adaptive plotting scheme terminates. A higher value results in more function evaluations for non-smooth functions. (Note: this option is applicable only when adaptive plotting is used.)
sample
Used as sample=[l]. A list of numerical values to be used for the initial sampling of the function. Normally, the function is sampled at additional points. To restrict sampling to only these values, include adaptive=false when calling the plot function.
scaling
unconstrained (plot is scaled to fit the window)
Used as scaling=s. Specifies the scaling of the graph. The constrained value causes all axes to use the same scale (Example: a circle appears perfectly round).
size
Used as size=[w,h]. Specifies the size of the plot window. You can set the size by specifying the number of pixels, a proportion of worksheet width, a ratio (Example: a square), the golden ratio, or a custom ratio. w (width) must be a positive numeric value or the string default. h (height) must be a positive numeric value, or: default, golden, or square. If w or h is a number of 10 or more, it specifies the number of pixels for the width or height. If w or h is default, the default size (which may be interface-specific) is used. If w is a number less than 10, the plot window width is w multiplied by the width of the worksheet (Note: this form for w is ignored if the plot is part of a plot array). If h is a number less than 10, the height is h multiplied by the width of the plot window as given by w. If h is square, this is equivalent to h having the value 1.0. If h is golden, this is equivalent to h having the value equal to the reciprocal of the golden ratio (1/2 + √5/2).
style
polygonoutline
Used as style=s. The plot style can be: line, point, pointline, polygon (or patchnogrid), or polygonoutline (or patch). line, polygon, and polygonoutline all draw curves by interpolating between the sample points. The point style results in a plot of the points only. (Note: polygonoutline draws any polygons as filled with an outline.) polygon shows the polygons with no outline, whereas line draws the polygons as outlines only. pointline is a combination of point and line.
symbol
Used as symbol=s. Specifies the symbol to use for plotted points. Choose from: asterisk, box, circle, cross, diagonalcross, diamond, point, solidbox, solidcircle, or soliddiamond.
symbolsize
10
Used as symbolsize=n. The size (in points) of a symbol used in plotting, given by a positive integer. (Note: this doesn't affect symbol=point.)
thickness
1
Used as thickness=n. Specifies the thickness of lines in the plot. n must be a non-negative number. A value of 0 produces the thinnest line that looks good in most contexts.
tickmarks
Used as tickmarks=[m, n]. m and n specify the tickmark placement for the x-axis and y-axis, respectively. Choose from: an integer specifying the number of tickmarks, a list of values specifying locations, a list of equations each having the form location=label, a name, or a spacing structure. For greater control over the appearance of tickmarks, use the axis option. If the axis option is also provided and contains a tickmarks sub-option, that option overrides this tickmarks option.
title
no title
Used as title=t. The title for the plot. t can be an arbitrary expression, or a list consisting of the title followed by the font option.
titlefont
Used as titlefont=l. Font for the title of the plot (specified in the same manner as font). Overrides values specified for font.
transparency
Used as transparency=t. Specifies the transparency of the plot surface. t must evaluate to a floating-point number in the range 0 to 1. A value of 0 means opaque; a value of 1 means fully transparent.
view
Used as view=[xmin..xmax, ymin..ymax]. Indicates the minimum and maximum coordinates of the curve to be displayed on the screen. (Note: the plot structure is analyzed to determine a reasonable view that allows you to see the significant features of the data.) The coordinateview option is normally used with polar plots. (Note: if the same option is provided more than once, with different values, the final value specified is generally what is used. The options described above are all available for the Standard Worksheet interface.)
Examples of 2D Maple plots
Here are some examples of using 2D Maple plot options within the plotstatement argument:
Example 1
Use the following 2D Maple plot options:
title = `Sine\nGraph`
titlefont = [`Roman`, 15]
Enter into the Algorithm Editor:
$a=plotmaple("plot(sin(x), x = -2*Pi .. 2*Pi, title = `Sine\nGraph`, titlefont = [`Roman`, 15])");
Example 2
Use the following 2D Maple plot options:
title = `Cosine\nGraph`
axes = framed
style = point
symbol = asterisk
symbolsize = 15
tickmarks = [spacing(Pi), default]
Enter into the Algorithm Editor:
$a=plotmaple("plot(cos(x), x = -2*Pi .. 2*Pi, title = `Cosine\nGraph`, axes = framed, style = point, symbol = asterisk, symbolsize = 15, tickmarks = [spacing(Pi), default])");