plots - Maple Programming Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Graphics : Packages : plots : plots/matrixplot

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. The user may 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:

matrixplotA.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

L:=112131415121314151613141516171415161718

(1)

matrixplotL

YMatrix20,3,i,j→evalf1+sinijπ,datatype=float[8]:

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

plot/structure

plot3d

plot3d/option

plots[listcontplot3d]

plots[listcontplot]

plots[sparsematrixplot]

read

save

 


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam