date - MATLAB - datetick (specify number of points on axis) -


i use datetick('x','hh:mm:ss.fff'). how can specify how many labels (specially denotes points) on x-axis puts?

datetick replaces labels of current tick marks formatted date/time strings.

you control actual location of ticks using axes properties

xtick, ytick, ztick: vector of data values locating tick marks

set(gca,'xtick', [1 4 6]);%sets ticks @ x=1, x=4, x=6 

gca "get current axes", change xtick locations on recent axes you've activated (created, clicked on, or else). if have axes handle set of axes, can use handle in place of "gca".


Comments

Popular posts from this blog

jasper reports - Fixed header in Excel using JasperReports -

media player - Android: mediaplayer went away with unhandled events -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -