EPS Export in R2018a/b

9 views (last 30 days)
Pierre
Pierre on 26 Sep 2018
Edited: OCDER on 27 Sep 2018
In the recent years EPS export in Matlab has been rocky. But at last I could save decent figures in R2015b. Now in R2018a or R2018b if I export with 'renderer' set to 'opengl', I get a bitmap image (heap of pixels). If I set it to 'painters' I basically get all the restrictions of that algorithm (no alpha channel, for example). Better than nothing of course, but there's more stupid work in the pipeline to get a proper visualization. Is there a way to get a vectorized EPS output from an OpenGL figure? Do people at Matlab care? This maddening me.
(Edit: EPS export through the menu of the figure window, or with print -depsc2; same result. R2018a on MacOS 10.12.6).
  1 Comment
OCDER
OCDER on 26 Sep 2018
Upload the .fig file and the command you are using to save the eps file so that we can confirm this issue.

Sign in to comment.

Answers (1)

OCDER
OCDER on 26 Sep 2018
Here are some posts that deal with similar issues:
opengl is a bitmap renderer, so it makes sense you are getting a bitmapped .eps file. Using painters is the right way to go, but again, you do lose the alpha channel as you are already aware of. Seems like svg is the other format to use, read this:
  2 Comments
Pierre
Pierre on 27 Sep 2018
Thank you very much for the suggestion of SVG; apparently it seems to do the job, even for more complex graphics (though import in Illustrator is very slow then).
Nevertheless, I'd like to remind you that in R2015b you got vector graphics in EPS with the OpenGL renderer (file attached). Now you don't. It's called a regression, and that a product gets more limited by the years does not make perfect sense to me.
OCDER
OCDER on 27 Sep 2018
Edited: OCDER on 27 Sep 2018
I understand the frustration, as even Microsoft has removed support of eps files and caused a lot of headaches.
I wonder if this article about the PostScript bug might explain why eps is being avoided. Seems like it could cause serious damages...

Sign in to comment.

Categories

Find more on Graphics Performance in Help Center and File Exchange

Products


Release

R2018a

Community Treasure Hunt

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

Start Hunting!