How can I add more tick labels to my graph? When opened I only get two tick labels and now and again I wont change anything and it will give me 5 or 6 labels. Is there a way i can speciify exactly how many labels i require?
function plot_tide_data(tidedata)figure(1)clfplot(tidedata.t,tidedata.h,'b-')datetick('x','dd/mmm')xlabel('Day of Month','fontsize',15)ylabel('Tidal Height (m)','fontsize',15)set(gca,'Xminortick','on')set(gca,'Yminortick','on')set(gca,'tickdir','in')grid onset(gcf, 'PaperPositionMode', 'auto');set(gca,'linewidth',2)u = get(gca,'XtickLabel');set(gca,'XtickLabel',u,'fontsize',20)set(gca,'linewidth',1.5)xlim([737739 737750])
Best Answer