graphic axis tic label with two lines

Jens Wunderlich jewu at gmx.net
Wed Sep 1 21:00:15 CEST 2010


  Hi all,

is it possible to have the tics of let's say the x-axis labelled with a 
two-lines string?
In my case I like to have labels with date and time. These labels are 
too long and are printed overlapping. To avoid this it would be nice to 
have the time below the date.

I tried:

//working example with all in one line
ha=gca();

ha.x_ticks.labels(1) = '2010-09-01 20:55';

//this doesn't work
ha.x_ticks.labels(2) = ['2010-09-01' '20:55' ]

Any help would be appreciated.

Thanks,
Jens



More information about the users mailing list