Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
6.1.0 - Português

Change language to:
English - Français - 日本語 - Русский

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

Ajuda do Scilab >> Biblioteca de Gráficos > axes_operations > xgrid

xgrid

add a grid on a 2D or 3D plot

Syntax

xgrid
xgrid(color)
xgrid(color, thickness)
xgrid(color, thickness, style)

Arguments

color

an integer or a row vector

thickness

a real or a row vector

style

an integer or a row vector

Description

xgrid adds a grid on a 2D or 3D plot. d for each axis).

color is the colors id to use for the grid plotting (if color is a scalar then the same color is used for each axis).

thickness is the thickness to use for the grid plotting (if thickness is a scalar then the same thickness is used for each axis).

style is the style to use for the grid plotting (if style is a scalar then the same style is used for each axis). Available styles are the same as for line_style property (see axes_properties).

Examples

x=[0:0.1:2*%pi]';
plot2d(sin(x))
xgrid(5, 1, 7)

See also

History

VersionDescription
5.5.0 Arguments thickness and style introduced.
Report an issue
<< unzoom axes_operations xsetech >>

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:
Tue Feb 25 08:52:32 CET 2020