Scilab Home page | Wiki | Bug tracker | Forge | Mailing list archives | ATOMS | File exchange
Change language to: English - Français - Português - 日本語 -

See the recommended documentation of this function

Справка Scilab >> Графики > 2d_plot > graypolarplot

# graypolarplot

Polar 2D plot of a surface using colors

### Syntax

`graypolarplot(theta,rho,z,[strf,rect])`

### 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` and `y`.

y=3

like `y=1` but produces isoview scaling.

y=4

like `y=2` but produces isoview scaling.

y=5

like `y=1` but `plot2d` 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` but `plot2d` 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.

leg

a string. It is used when the first character x of argument `strf` is 1. `leg` has the form `"leg1@leg2@...."` where `leg1`, `leg2`, etc. are respectively the captions of the first curve, of the second curve, etc. The default is `""`.

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]`.

### 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

```rho=1:0.1:4;theta=(0:0.02:1)*2*%pi;
z=30+round(theta'*(1+rho.^2));
f=gcf();
f.color_map= hotcolormap(128);
clf();graypolarplot(theta,rho,z)```
{"ft_lang_label":"__label__en","ft_lang_prob":0.5816536,"math_prob":0.95065635,"size":2884,"snap":"2022-27-2022-33","text_gpt3_token_len":893,"char_repetition_ratio":0.12534723,"word_repetition_ratio":0.13562752,"special_character_ratio":0.27011096,"punctuation_ratio":0.13275862,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9953806,"pos_list":[0,1,2],"im_url_duplicate_count":[null,2,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2022-07-03T14:03:44Z\",\"WARC-Record-ID\":\"<urn:uuid:392d5cbd-2ffc-4731-8082-9045833b2401>\",\"Content-Length\":\"30986\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:c2766fd6-7549-4e8c-881d-25973541e397>\",\"WARC-Concurrent-To\":\"<urn:uuid:9a6b79bd-99cb-4c74-a084-83cfae3c4d2c>\",\"WARC-IP-Address\":\"176.9.3.186\",\"WARC-Target-URI\":\"https://help.scilab.org/docs/6.0.0/ru_RU/graypolarplot.html\",\"WARC-Payload-Digest\":\"sha1:VSG3NYLU6DYUTEIJ5WLIO2UT6KQ4JT4N\",\"WARC-Block-Digest\":\"sha1:X3BDRSY67F2235AFPBFOBMI6GV53Z7QY\",\"WARC-Identified-Payload-Type\":\"application/xhtml+xml\",\"warc_filename\":\"/cc_download/warc_2022/CC-MAIN-2022-27/CC-MAIN-2022-27_segments_1656104244535.68_warc_CC-MAIN-20220703134535-20220703164535-00142.warc.gz\"}"}