From: dpb on
Dave wrote:
> On Feb 24, 12:19 pm, "Steven Lord" <sl...(a)mathworks.com> wrote:
>> Have you tried DATETICK (as per my previous suggestion in this thread) or
>> DATESTR to generate strings that you then use to SET the XTickLabel
>> properties of _both_ axes whose handles are returned from PLOTYY?
>>
>> --
>> Steve Lord
>> sl...(a)mathworks.com
>> comp.soft-sys.matlab (CSSM) FAQ:http://matlabwiki.mathworks.com/MATLAB_FAQ
>
> Hi Steve,
>
> Yes, actually since I posted that, I've had some luck. I've managed to
> convert the Java-generated strings to datenums, plot the chart, and
> then use dateticks to display the dates in the format I need. However,
> I'm still struggling with the frequency of the X axis labels. The
> chart only shows 6 timestamps - I'd like to get a lot more.
>
> Obviously I'm very new to Matlab, so thanks for the help!

Use the set() function w/ the 'xticklabel' property to set the array of
labels as you wish from a generated datenum() array passed thru datestr()

--