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:

  1. focus in on plot y axis limits -1 , 1 (right -4 , 14). i'm uninterested in values beyond these limits.
  2. re-label y axis -1 1 in .10 increments.
  3. 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.

i gracious assistance provided. plot modify

enter image description here

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

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -