I have the plot attached. You can see on the right side text goes outside the box area and the scattered data at the top and bottom also does the same because of their size.
I simply want the text and part of the scatter points that are outside of the box to be blanked out.
I've tried the set(h,'Clipping','on') option with no luck, and I do not want to simply change my y and x ranges leaving blank space.
Any suggestions how I can do this???
Basic code:
contourf(x,y,z,40,'LineStyle','none')hold onh1 = scatter(X,Y,23,'K','Square','Clipping','on')h2 = scatter(X,Y,20,Z,'Square')h3 = contour(x,y,z,[13.4 13.6 13.7 14],'k','ShowText','on')
Best Answer