plotting date on x-axis
Simon
simon.elfert at web.de
Wed Aug 27 17:51:18 CEST 2008
Hi everybody,
I want to plot some timeseries where the x-ticks are dates (for example
"Nov. 1987" or "1.11.87").
That's where I am today...
forum
-------------
dt = datenum(y, m, d); // y, m, d are vectors with information on
year, month and day
all = [dt, data1, data2, data3]; // data1-3 are
data-vectors
-------------
till here I get:
-------------
all=
724216. 6.6894479 6.6952958 0.20484
724217. 7.8806429 8.1755199 0.21636
724218. 9.0097742 10.1717 0.22731
724219. 9.3107634 11.451789 0.2525200
724220. 9.3775043 12.343613 0.3197800
724221. 9.3765812 12.939786 0.4009100
724222. 9.2700891 13.249661 0.5409700
724223. 9.1931381 13.444237 0.5119000
724224. 9.0925598 13.484509 0.47847
------------
when I plot that ( plot(all(:,1), [all(:,2), all(:,3), all(:,4)]) ), I
only get the serial dates (first column) on the x-axis.
Do you, how I could go on? I guess I need something like what is
datetick for matlab (found that expression on my research through the net).
Thank you,
Simon
More information about the users
mailing list