Previous Up Next

19.5.2  2D graph of a surface with colors

The plotdensity or densityplot command draws the graph of a function of two variables in the plane where the values of z are represented by the rainbow colors.

Remark.

A rectangle representing the scale of colors will be displayed below the graph.

Example

plotdensity(x^2-y^2,[x=-2..2,y=-2..2],xstep=0.1,ystep=0.1)

Previous Up Next