Problem using circles as marker type when linewidth > 0.5 (default)... using Matlab R2018a
6 comentarios
Respuesta aceptada
3 comentarios
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
Más respuestas (0)
Ver también
Categorías
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!