Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
5.5.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 > axes_operations > 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();plot2d1('enn',0,y)
[ymn,ymx,np]=graduate(min(y),max(y))
rect=[1,ymn,prod(size(y)),ymx];
clf();plot2d1('enn',0,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
<< axes_operations axes_operations plotframe >>

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:
Thu Oct 02 13:54:34 CEST 2014