plotting date on x-axis
Simon
simon.elfert at web.de
Wed Aug 27 19:40:13 CEST 2008
Thank you very much Francis,
wow - that is a fast answer! That seems to be a good approach either...
even if this does not work just the way you posted it.
I now got a vector of strings by these four rows...
------------------------
dat=[string(d(1))+ "." + string(m(1))+ "." + string(y(1))];
for j=2:length(y)
dat = [dat; string(d(j))+ "." + string(m(j))+ "." + string(y(j))];
end
-------------------------
... but when I put it as: ...
----------------------------
plot(all(:,1), [all(:,2), all(:,3), all(:,4)])
h = gca()
h.x_ticks.labels = dat
----------------------------
... it still is said that the submatrix is defined incorrectly.
The structure of the x_ticks.labels-vector (v) seems to be like:
----------------------
v(1) = ["ticks location labels"] // one string - probably the keyword
or header of the vector
v(2) = [1; 2; 3; ... ; 9] // floats - probably the
locations of the ticks
v(3) = ["1"; "2"; "3"; ... ; "9"] // strings - probably the labels
of the ticks
-------------------------
yet, I could not rebuild that vector with my dates, but I will post it,
if I succeed...
so long,
Simon
More information about the users
mailing list