Is there a more intelligent method to specify the interval of the axis of a scatter plot?
fig1 = gscatter(x,y, 'k', '.') ylim([-20 20]); yticks([-20 -15 -10 -5 0 5 10 15 20]); % this works but I am looking for a better code
set(fig1, 'ytick', [-20:5:20]); % something like this?
Best Answer