scatterplot points cut in half
4 次查看(过去 30 天)
显示 更早的评论
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?
4 个评论
Walter Roberson
2018-6-20
Odd, that almost looks like it is creating "tiles" and that the tiles are misaligned.
Image Analyst
2018-6-20
编辑:Image Analyst
2018-6-20
Can you at least upload a small subset of the (x,y) coordinates so we can try some things? Make sure your scatter() with that data demonstrates the problem. But scatter() does not put lines, I don't think, so were those lines there before? Did you use plot() to put up the lines, then scatter() to put markers on top of the lines? Or did you use plot() instead of scatter() to plot both the markers and the lines?
采纳的回答
OCDER
2018-6-20
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')
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Lighting, Transparency, and Shading 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!