[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Coordinates in plot axis. How can I modify number of digits
From: |
Carlo de Falco |
Subject: |
Re: Coordinates in plot axis. How can I modify number of digits |
Date: |
Thu, 25 Feb 2010 13:59:45 +0100 |
On 25 Feb 2010, at 13:42, José Luis García Pallero wrote:
Hello,
If I plot, for example, the data
x=[450000 460000 470000];
y=[4810000 4820000 4830000];
plot(x,y);
The coordinate tags in Y axis are 4.81e+06, 4.82e+06, etc.
How can I call to plot for obtains axis with tags as 4810000.000,
4820000.000, etc.?
set (gca, 'xticklabel', sprintf ('%#3.9g |', get (gca, 'xtick')))
set (gca, 'yticklabel', sprintf ('%#3.9g |', get (gca, 'ytick')))
Is possible to control the number of decimal places
too?
well, you can put anything in the tick labels but I don't exactly how
Thanks
c.