What's the best image format to save this matlab figure ?

15 visualizaciones (últimos 30 días)
Juliette Salexa
Juliette Salexa el 8 de Abr. de 2012
Comentada: Enrique el 27 de Feb. de 2023
I need to save thousands of figures that look like this (except without any letters, the final figure is JUST the points):
- The dots are ONLY black, so I don't care about color loss. - I also don't care about how much space it takes up or how fast it takes to load, because I can always convert to a different format later - I do however care about ACCURACY. I don't want to lose any information (already in this PNG some of the points have been groups together into bigger points)
I like the way you can zoom into EPS files and nothing looks pixelated, but I'm not sure how a vector graphic would work with just points. Are there any disadvantages if I choose EPS ?
I'm also wondering whether I should export these figures to files using -nodisplay mode.. because when I have a display, it seems that the image is being printed to the file from the image displayed on the screen (which might have a lower resolution than printing directly from the mathematical data).
I just want to export these files with minimal loss of data !
Thank you =)
  1 comentario
Enrique
Enrique el 27 de Feb. de 2023
You can use the format .svg, for me is the best when I have to write pappers

Iniciar sesión para comentar.

Respuestas (2)

Image Analyst
Image Analyst el 8 de Abr. de 2012
I don't know what EPS is doing. If it's not pixelated but your original is then it must be doing some kind of interpolation and that will make it look smoother than it really it. If you want that, then fine. Window 7 doesn't seem to create nice icons for EPS files like the other formats. I just don't use EPS so I'm not sure of any advantages it has. I use PNG because it is a lossless standard that is becoming more and more widely used.
  1 comentario
Daniel Shub
Daniel Shub el 10 de Abr. de 2012
If you plot a line and export it as png and you zoom in enough eventually the image will look pixelated. If you export it as eps it will never look pixelated.

Iniciar sesión para comentar.


Daniel Shub
Daniel Shub el 10 de Abr. de 2012
If you are starting with a 2D matrix of the dot locations, then I would save that matrix and not the figure. If you really want a figure, then go with a vector graphic (eps or pdf). If you try and create an eps file from a bitmap image, the disadvantage is a large file size and slow rendering. It saves and recreates the data set (pixel values) in a lossless manner. The -nodisplay mode should not matter.

Categorías

Más información sobre Printing and Saving en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by