Modify code for tick marks to be on the outside?
Mostra commenti meno recenti
Hi all,
I copied and pasted this code...I just need a slight modification to get the tick marks to appear on the outside and not on the side of the graph. It is currently set to only have the tick marks on the bottom (x axis) and the left (y axis). I.e. not at the right and at the top.
axis([0,1200,0,70])
% get handle to current axes
a = gca;
% set box property to off and remove background color
set(a,'box','off','color','none')
% create new, empty axes with box but without ticks
b = axes('Position',get(a,'Position'),'box','on','xtick',[],'ytick',[]);
% set original axes as active
axes(a)
% link axes in case of zooming
linkaxes([a b])
Many thanks.
J
Risposta accettata
Più risposte (1)
Jai
il 14 Ago 2014
1 voto
Categorie
Scopri di più su Axis Labels in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!