Problem using circles as marker type when linewidth > 0.5 (default)... using Matlab R2018a
采纳的回答
3 个评论
Oh, were you having issues with saving the file, or the figure not showing correctly on screen? How were you saving the images? Using vector graphics like you are doing now (pdf, eps, emf) is probably best, as you don't lose resolution. But if you want the other file types, try this:
print(gcf, 'test.png', '-dpng', '-r600', '-painters') or print(gcf, 'test.png', '-dpng', '-r600', '-opengl')
If you used saveas, then you'll run into resolution issues, especially with jpg formats, due to loss of quality for jpeg formats and also saveas dialog box uses a 150DPI resolution. See the Tips in the way bottom of this page:
https://www.mathworks.com/help/matlab/ref/saveas.html
Tips
- To control the size or resolution when you save a figure, use the print function instead.
- The saveas function and the Save As dialog box (accessed from the File menu) do not produce identical results. The Save As dialog box produces images at screen resolution and at screen size. The saveas function uses a resolution of 150 DPI and uses the PaperPosition and PaperPositionMode properties of the figure to determine the size of the image.
You could also try this popular tool for saving images
https://www.mathworks.com/matlabcentral/fileexchange/23629-export_fig
更多回答(0 个)
另请参阅
类别
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!