plots
matrixplot
3-D plot with z values determined by a matrix
Calling Sequence
Parameters
Description
Examples
matrixplot(A, options)
A
-
Matrix
options
see plot3d/option
The matrixplot function defines a three-dimensional graph where the x and y coordinates represent the row and column indices of A, respectively. The z values are the corresponding entries of A.
The remaining arguments are options specified as equations of the form option = value. For example:
heights=histogram
The plot is drawn in the form of a three-dimensional histogram.
gap=r
The value of r is a real number between 0 and 1.
color=F
The color of the plot is given by F, where F is a color specification as described in the plot/color help page. F can also be a two-argument procedure returning a single real value to be interpreted as a hue rather than RGB value.
Other options include most of those found with plot3d. These include axes, view, title, labels, style, projection, and orientation. See plot3d/option.
The result of a call to matrixplot is a PLOT3D structure which can be rendered by the plotting device. You can assign a PLOT3D value to a variable, save it in a file, then read it back in for redisplay. See plot3d/structure for more information.
with⁡plots:
with⁡LinearAlgebra:
A ≔ HilbertMatrix⁡8:B ≔ ToeplitzMatrix⁡1,2,3,4,−4,−3,−2,−1,symmetric:
matrixplot⁡`.`⁡A,B
matrixplot⁡A+B,heights=histogram,axes=boxed
matrixplot⁡A+B,heights=histogram,axes=frame,gap=0.25
F ≔ x,y→sin⁡x⁢y:
matrixplot⁡A+B,heights=histogram,axes=frame,gap=0.25,color=F
L ≔ HilbertMatrix⁡4,5
L≔112131415121314151613141516171415161718
matrixplot⁡L
Y ≔ Matrix⁡20,3,i,j→evalf⁡1+sin⁡i⁢jPi,datatype=float8:
plots:-matrixplot⁡Y,heights=histogram,gap=0.5,color=x,y→1−y3+0.2,orientation=−55,55,0,labels=,,
The command to create the plot from the Plotting Guide is
matrixplot⁡A
See Also
LinearAlgebra
LinearAlgebra[HilbertMatrix]
LinearAlgebra[ToeplitzMatrix]
plot/color
plot3d
plot3d/option
plot3d/structure
plots[listcontplot3d]
plots[listcontplot]
plots[sparsematrixplot]
read
save
Download Help Document