MATLAB: Scatterplot points cut in half

MATLABscatterscatterplot

I'm making a scatterplot and some of the data points are cut in half(eg. become a semicircle) when I use the saveas function to save it as an image (png, jpg etc) but the points are normal when I save it as a figure and I can save it from the figure properly. ie. the points don't get cut in half. Does anyone know how to stop this from happening?

Best Answer

I used to have issues like this too. Try print to save the image instead, and use painters renderer.
print(gcf, 'figure_name.png', '-dpng', '-r300', '-painters')
Related Question