
Change the xaxis scale on a graph
Posted:
Feb 3, 2013 6:40 AM


Dear, I have a special time series graph. It's looks as follows: a = [1 431.3 0.5 454 1 476.7; 2 412.3 1.5 434 2 455.7]; x = a(:,[1 3 5])'; y = a(:,[2 4 6])'; patch(x,y,'w'); title('Time series', 'FontWeight','bold'); xlabel('Time (Months)'); ylabel('Population Size'); set(gca,'XTick',[0:4],'XLim',[0 4]); grid on;
How to transform the scale of x axis? In particular case I want to change the values 0,1,2,3,4 with Dec 2005, Jan 2006, Feb 2006, .....
Thanks in advance!!! Best, Milos

