graph - How to keep gridlines on but turn ytick off in MATLAB -


i trying put grid lines on plot turn off numbered markers on axis.

i first turn on grid lines using:

grid on; 

however when rid of markers using

set(gca,'ytick',[]); % rid of markers 

the y grid turns off! how stay?

i don't know if there more elegant solution set tick labels empty strings.

 set(gca, 'yticklabel', []) 

this way tick marks still there.


Comments

Popular posts from this blog

plot - Remove Objects from Legend When You Have Also Used Fit, Matlab -

java - Why does my date parsing return a weird date? -

Need help in packaging app using TideSDK on Windows -