MATLAB focus plot and apply correct tick labels -
i'd rather asking bayesian analysis on this, unfortunately, terrible matlab plots (not due lack of effort though).
i have plot attached. contains 1739 days of data. need following 3 things:
- focus in on plot y axis limits -1 , 1 (right -4 , 14). i'm uninterested in values beyond these limits.
- re-label y axis -1 1 in .10 increments.
- re-label x axis starts 1, ends 1739, , has enough points in between still readable.
i've studied gca, datetick, ax=gca, etc. cannot accomplish of these tasks without messing plot.
changing axis limits simple,
axis([1 1739 -1 1]) %// [xmin xmax ymin ymax]
and tick marks, do
set(gca,'xtick',-1:.1:1,'ytick',1:79:1739) %// 2*79 might better 79
after create plot. can (should?) replace gca
handle plot (do h=plot(...
when make plot, set(h,'xtick',...
).
you should go through matlab plotting basics goes through kind of stuff in detail.
Comments
Post a Comment