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

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

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

Aide de Scilab >> Graphiques > axis > graduate

graduate

graduations simplifiées des axes 2D

Séquence d'appel

[xi,xa,np]=graduate( xmi, xma,n1,n2)
[xi,xa,np]=graduate( xmi, xma)

Paramètres

xmi,xma

scalaire réel

n1, n2

entiers avec comme valeurs par défaut 3, 10

xi, xa

scalaire réel

np

entier

Description

graduate recherche l'intervalle minimum [xi,xa] et un nombre de graduations np tels que :

xi <= xmi <= xma <= xa

xa - xi / np = k(10^n),k dans [1 3 5] pour un entier n

n1 < np < n2

Exemples

y = (0:0.33:145.78)';
clf();
subplot(1,2,1)
plot2d(y)

subplot(1,2,2)
[ymn,ymx,np] = graduate(min(y), max(y))
rect = [1, ymn, prod(size(y)),ymx];
plot2d([], y, 1,'011',' ',rect,[10,3,10,np])

Voir aussi

  • xsetech — sélectionne la sous-fenêtre d'une fenêtre graphique pour les dessins
  • plot2d — 2D plot
Report an issue
<< drawaxis axis xgraduate >>

Copyright (c) 2022-2023 (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 Jan 03 14:33:07 CET 2022