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

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

Справка Scilab >> Графики > axes_operations > graduate

graduate

Pretty axis graduations

Calling Sequence

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

Arguments

xmi,xma

real scalars

n1, n2

integers with default values 3,10

xi, xa

real scalars

np

integer

Description

graduate looks for the minimum interval [xi,xa] and a number of tics np such that:

xi <= xmi <= xma <= xa

xa - xi / np = k(10^n),k in [1 3 5] for an integer n

n1 < np < n2

Examples

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])

See Also

  • xsetech — set the sub-window of a graphics window for plotting
  • plot2d — 2D plot
Scilab Enterprises
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Thu Oct 02 14:01:08 CEST 2014