Figures displaying differently in and out of MATLAB

19 views (last 30 days)
My figures are displaying differently in and out of MATLAB. I saved an image as an uncompressed TIF: -
and a screenshot after I imported it into Mathematica (shown at actual size): -
and a screenshot of the PDF generated from Mathematica by printing to PDF: -
a screen shot of the actual tif after it was opened in preview is here: -
I've found that I have to make the line thickness really fat so that they're properly visible after they're saved as whatever file type (jpeg, png, tif, uncompressed tif).
Does anyone have any advice or tips on getting there figures to look good i.e. no blurring or pixelation.
[EDITED, Jan, converted URLs to links]
Tom on 4 Nov 2012
Jan Simon - Sorry, I didn't actually know about all of the options - I just thought saving while looking at the figure was the only way of creating a graphic. So to answer you - I used SAVEAS. I now know what the export_fig and print options are, but I'm not sure what the IMWRITE and manually in the menu of the figure are.
My main problem is with blurred images. I usually don't have to print things out physically - just to PDF. I export images from MATLAB then import them into Mathematica and export to PDF from there. I've also tried using Word but the blurring is still there.

Sign in to comment.

Accepted Answer

José-Luis on 4 Nov 2012
In order to preserve appearance, you could use a vector graphics format, such as .svg or .eps, instead of .png which is a bitmap.
Also make sure you are using the right renderer if you go the vector graphics route (look at "Selecting a renderer" from the documentation). You should use Painters for vector formats.
How your bitmap looks like depends on a lot of things, the renderer, the resolution, etc... It can be a pain to deal with.
Tom on 6 Nov 2012
Thank you very much Jose and Jan - much appreciated.

Sign in to comment.

More Answers (0)


Find more on Printing and Saving in Help Center and File Exchange


Community Treasure Hunt

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

Start Hunting!

Translated by