Topic 6. Functions. Procedures Expansion Packages. 2D graphics
4. Graphics library
The Maple core embedded two graphics functions - the construction of two-dimensional graphs ( 2 D- type) - plot () and the construction of three-dimensional graphs ( 3 D- type) - plot3 d ().
Charts are constructed in the form of a number of points, which are joined by straight lines.
The plot operator options
The simplest forms of the plot () function are:
- plot ( f, xmin .. xmax) - construction of the graph of the function f given by the name only;
- plot ( f ( x), x = xmin .. xmax) - construction of the graph of the function f ( x) .
The main parameters of the plot command are :
- title = "text" , where text is the caption of the graph.
- coords = polar - setting of polar coordinates (by default, Cartesian). Other variants: bipolar, cardioid, cassinian, elliptic, hyperbolic, invcassinian, invelliptic, logarithmic, logcosh, maxwell, parabolic, polar, rose, tangent.
- axes - setting the type of coordinate axes: axes = NORMAL - normal axis; axes = BOXED - Schedule in frame with scale; axes = FRAME - centered axis in the lower left corner of the drawing; axes = NONE - without axes.
- scaling - scale setting: scaling = CONSTRAINED - the same scale on the axes; scaling = UNCONSTRAINED - the graph is scaled by the size of the window.
- style = LINE - build lines, style = POINT dot construction.
- numpoints = n is the number of computed graph points (by default n = 50 ).
- Сolor - setting the color of the line: for example, yellow - yellow, etc. Other options: aquamarine black blue navy coral cyan brown gold green gray gray khaki magenta maroon orange pink plum red sienna tan turquoise violet wheat white yellow.
- thickness = n , where n = 1,2,3 ... - the thickness of the line (by default n = 1 ).
- linestyle = n - line type: solid, dotted, etc. (default n = 1 is solid).
- symbol = s - type of character denoted by the points: BOX, CROSS, CIRCLE, POINT .
- font = [ f, style, size] - Set the font type to output text: f specifies the font name: TIMES, COURIER, HELVETICA, SYMBOL ; style specifies the font style: BOLD, ITALIC, UNDERLINE ; size - font size in pt .
- labels = [ tx , ty ] - on inscriptions axes: tx - along axis O x and ty - on the axis O y .
An example of constructing two graphs simultaneously:
plot ([x, x ^ 2], x = -1 .. 3, thickness = [1, 3], color = [red, green]) ;
You can use the smartplot (f) function to quickly plot the graph.
Most graphical functions are represented by the package of plots and plottools, which are called with the command with.
Package plots
The package includes the following functions: [animate, animate3d, animatecurve, arrow, changecoords, complexplot, complexplot3d, conformal, conformal3d, contourplot, contourplot3d, coordplot, coordplot3d, densityplot, display, dualaxisplot, fieldplot, fieldplot3d, gradplot, gradplot3d, implicitplot, implicitplot3d , intersectplot, listcontplot, listcontplot3d, listdensityplot, listplot, listplot3d, loglogplot, logplot, matrixplot, multiple, odeplot, pareto, plotcompare, pointplot, pointplot3d, polarplot, polygonplot, polygonplot3d, polyhedra_supported, polyhedraplot, rootlocus, semilogplot , setcolors, setoptions, setoptions3d, shadebetween, spacecurve, sparsematrixplot, surfdate, textplot, textplot3d, tubeplot animatecurve, arrow, changecoords, complexplot, complexplot3d, conformal, conformal3d, contourplot, contourplot3d, coordplot, coordplot3d, densityplot, display, dualaxisplot, fieldplot, fieldplot3d, gradplot, gradplot3d, implicitplot, implicitplot3d, inequal, interactive, interactiveparams, intersectplot, listcontplot, listcontplot3d, listdensityplot, listplot, listplot3d, loglogplot, logplot, matrixplot, multiple, odeplot, pareto, plotcompare, pointplot, pointplot3d, polarplot, polygonplot, polygonplot3d, polyhedra_supported, polyhedraplot, rootlocus, semilogplot, setcolors, setoptions, setoptions3d, shadebetween, spacecurve, sparsematrixplot, surfdata, textplot, textplot3d, tubeplot] .
In addition to the schedules of the plot plots and plottools, here are the packages:
- stats [ statplots ] - construction of graphic statistics;
- Student - a set of graphic operators for general sections of mathematics;
- geometry - construction of objects of geometry of Euclidean on a plane.
- geom3d - construction of Euclidean geometry objects in space.
Font Face
Font Size
Text Colour
Background Colour
Font Kerning
Image Visibility
Letter Spacing
Line Height
Link Highlight