[Scilab-users] {EXT} Re: finding reasonable axis markers for plotting a random data set

Samuel Gougeon sgougeon at free.fr
Mon Nov 14 22:41:23 CET 2016


Le 14/11/2016 14:14, christophk a écrit :
> .../...
> 1. xmin = 8.31 xmax = 9.23
> Then lets specify a some possible steps (=axismarkers-1) and see what would
> be preferable results for my taste:
> steps = 2 =>  markers: 8.25 8.75 9.25
> steps = 4 =>  markers: 8.25 8.5 8.75 9.25
> steps = 6 =>  markers: 8.2 8.4 8.6 8.8 9 9.2 9.4
> steps = 10 => markers: 8.2 8.3 .... 9.3
>
> 2. xmin = -0.001 xmax = 2 (forced 0 for a marker)
> steps = 2 => -2 0 2
> steps = 3 => -1 0 1 2
> steps = 4 => -0.7 0 0.7 1.4 2.1
> steps = 5 => -0.5 0 0.5 1 1.5 2
.
Usually, nice steps for a linear axis are multiples of 1, 2 or 5 times 10^n
See also https://help.scilab.org/docs/6.0.0/en_US/graduate.html





More information about the users mailing list