graypolarplot
Polar 2D plot of a surface using colors
Syntax
graypolarplot(theta,rho,z,[strf,rect]) h = graypolarplot(...)
Arguments
- theta
a vector with size n1, the discretization of the the angle in radian.
- rho
a vector with size n2, the discretization of the radius
- z
real matrix of size (n1,n2).
z(i,j)
is the value of the surface at the point (theta(i),rho(j)).- strf
is a string of length 3
"xy0"
.- default
The default is
"030"
.- x
controls the display of captions.
- x=0
no captions.
- x=1
captions are displayed. They are given by the optional argument
leg
.
- y
controls the computation of the frame.
- y=0
the current boundaries (set by a previous call to another high level plotting function) are used. Useful when superposing multiple plots.
- y=1
the optional argument
rect
is used to specify the boundaries of the plot.- y=2
the boundaries of the plot are computed using min and max values of
x
andy
.- y=3
like
y=1
but produces isoview scaling.- y=4
like
y=2
but produces isoview scaling.- y=5
like
y=1
butplot2d
can change the boundaries of the plot and the ticks of the axes to produce pretty graduations. When the zoom button is activated, this mode is used.- y=6
like
y=2
butplot2d
can change the boundaries of the plot and the ticks of the axes to produce pretty graduations. When the zoom button is activated, this mode is used.- y=7
like
y=5
but the scale of the new plot is merged with the current scale.- y=8
like
y=6
but the scale of the new plot is merged with the current scale.
- rect
This argument is used when the second character y of argument
strf
is 1, 3 or 5. It is a row vector of size 4 and gives the dimension of the frame:rect=[xmin,ymin,xmax,ymax]
.- h
This optional output contains a handle to a Compound entity.
Description
Takes a 2D plot of the surface given by z
on a polar
coordinate grid defined by rho
and theta
. Each
grid region if filled with a gray or color level depending on the average
value of z
on the corners of the grid.
Examples
History
Version | Description |
2025.0.0 | Function returns the created handle(s). |
Report an issue | ||
<< grayplot properties | 2d_plot | histplot >> |