Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
6.0.1 - Français

Change language to:
English - 日本語 - Português - Русский

Please note that the recommended version of Scilab is 2025.0.0. This page might be outdated.
See the recommended documentation of this function

Aide de Scilab >> Graphiques > 2d_plot > grayplot

grayplot

2D plot of a surface using colors

Syntax

grayplot(x,y,z,[strf,rect,nax])
grayplot(x,y,z,<opt_args>)

Arguments

x,y

real row vectors of size n1 and n2.

z

real matrix of size (n1,n2). z(i,j) is the value of the surface at the point (x(i),y(j)).

<opt_args>

This represents a sequence of statements key1=value1, key2=value2 ,... where key1, key2,... can be one of the following: rect, nax, strf, logflag or axesflag and frameflag (see plot2d).

strf,rect,nax

see plot2d.

Description

grayplot makes a 2D plot of the surface given by z on a grid defined by x and y. Each rectangle on the grid is filled with a gray or color level depending on the average value of z on the corners of the rectangle. If z contains %nan values, the surrounding rectangles are not displayed.

Enter the command grayplot() to see a demo.

Examples

x=-10:10;
y=-10:10;
m=rand(21,21);
grayplot(x,y,m,rect=[-20,-20,20,20])
t=-%pi:0.1:%pi;
m=sin(t)'*cos(t);
clf()
grayplot(t,t,m)

See also

  • fgrayplot — représentation 2D en pseudo-couleurs d'une surface définie par une fonction
  • plot2d — 2D plot
  • Sgrayplot — smooth 2D plot of a surface using colors
  • Sfgrayplot — smooth 2D plot of a surface defined by a function using colors

History

VersionDescription
5.5.0 Option logflag introduced.
Report an issue
<< fplot2d 2d_plot grayplot properties >>

Copyright (c) 2022-2024 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Mon Feb 12 19:15:31 CET 2018