Plot Adaptive Options
Calling Sequence
Parameters
Description
Examples
Compatibility
plot(plotargs, adaptive=v)
plotargs
-
arguments to the plot command
adaptive = v
(optional) option of the form adaptive = v, where v can be one of true, false, geometric, a non-negative integer, or (default) default
The adaptive = v option controls the algorithm used by the plot command to produce two-dimensional plots.
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 subsampling can be turned off by setting the adaptive option to false. If this option is set to true, intervals are subdivided at most 6 times in trying to improve the plot. By setting this option to a non-negative integer, you can control the maximum number of times that subintervals are divided.
The adaptive = geometric option is used for non-parametric plots in the Cartesian coordinate system. (For parametric plots and those using other coordinate systems, the option adaptive = true is the default.) This causes plot to use an algorithm based on interval arithmetic together with an a posteriori geometric analysis based loosely on the RealBox object, which allows for the efficient recognition of many discontinuities. Moreover, the curve on-screen is often more accurate than with the other possible values of the adaptive option. While the adaptive = geometric option has higher overhead than the adaptive = true (or false) options, in most cases, the extra overhead is acceptable. However, for animations assembled manually, or for very large expressions, you may wish to use adaptive = true instead.
The adaptive = default option which is, as the name suggests, the default value for this option, uses a blended strategy that usually selects geometric plotting, when applicable, and selects adaptive plotting in some cases, such as for polynomials or for larger expressions.
If adaptive = true is used, the discont option must also be used for plot to detect discontinuities.
plot⁡floor⁡x−floor⁡x3,x=−5..5
plot⁡floor⁡x−floor⁡x3,x=−5..5,'adaptive'=true
plot⁡floor⁡x−floor⁡x3,x=−5..5,'adaptive'=false
plot⁡floor⁡x−floor⁡x3,x=−5..5,'adaptive'=true,'discont'
plot⁡sin⁡100⁢x+cos⁡10⁢x,x=−2⁢Pi..2⁢Pi,'adaptive'=true
plot⁡sin⁡100⁢x+cos⁡10⁢x,x=−2⁢Pi..2⁢Pi
plot⁡sin⁡x2,x=−5..5,'adaptive'=false,'numpoints'=10
plot⁡sin⁡x2,x=−5..5,'adaptive'=2,'numpoints'=10
plot⁡sin⁡x2,x=−5..5,'adaptive'=true,'numpoints'=10
plot⁡sin⁡x2,x=−5..5
plot⁡x2+1+0.0125⁢ln⁡1−3⁢x−1,x=1..1.4,'adaptive'=true
plot⁡x2+1+0.0125⁢ln⁡1−3⁢x−1,x=1..1.4
The adaptive option was updated in Maple 2022.
See Also
plot
plot/discont
Download Help Document