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
Post a Comment