plot a Matrix - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


plots

  

matrixplot

  

3-D plot with z values determined by a matrix

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

matrixplot(A, options)

Parameters

A

-

Matrix

options

-

see plot3d/option

Description

• 

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.

Examples

withplots:

withLinearAlgebra:

AHilbertMatrix8:BToeplitzMatrix1,2,3,4,4,3,2,1,symmetric:

matrixplot`.`A,B

matrixplotA+B,heights=histogram,axes=boxed

matrixplotA+B,heights=histogram,axes=frame,gap=0.25

Fx,y→sinxy:

matrixplotA+B,heights=histogram,axes=frame,gap=0.25,color=F

LHilbertMatrix4,5

L112131415121314151613141516171415161718

(1)

matrixplotL

YMatrix20,3,i,j→evalf1+sinijPi,datatype=float8:

plots:-matrixplotY,heights=histogram,gap=0.5,color=x,y→1y3+0.2,orientation=55,55,0,labels=,,

The command to create the plot from the Plotting Guide is

matrixplotA

See Also

LinearAlgebra

LinearAlgebra[HilbertMatrix]

LinearAlgebra[ToeplitzMatrix]

Matrix

plot/color

plot3d

plot3d/option

plot3d/structure

plots[listcontplot3d]

plots[listcontplot]

plots[sparsematrixplot]

read

save