Issue with print -depsc in R2015a

8 Ansichten (letzte 30 Tage)
Maja
Maja am 10 Jan. 2017
Beantwortet: Jyotish Robin am 16 Jan. 2017
I work almost exclusively with eps figures and produce them with the command >> print -depsc [filename]. Today I was not able to load such a figure in LibreOffice. My old eps-files were loaded as usual. So was the same plot created by going to File > Save As > and then choosing eps file in the menu.
I looked into the eps file of this plot created in three different ways (files included in attached zip-file):
1) File > Save As > EPS figure : SaveAs.eps 2) print -depsc print: print.eps 3) print -depsc2 print: print2.eps
Option 1) worked in LibreOffice, but not 2) and 3). The only difference I could see was that SaveAs.eps had a completely different bounding box.
What has changed and how can it be fixed? Going through the menu every time I want to save a plot is not on option. I run Matlab R2015a on Ubuntu 16.04.
  1 Kommentar
Jan
Jan am 10 Jan. 2017
Please explain "did not work" with any details: Do you get an error message or does the displayed results differ from your expectations?

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Jyotish Robin
Jyotish Robin am 16 Jan. 2017
I have taken a look at the EPS files you attached. It seems that the EPS files are still readable via other vector graphics viewers. This likely results from the limitations of the EPS drivers, as the EPS files can still be viewed with other PostScript viewer applications.
As a workaround, I suggest you use an alternative vector data type such as the Enhanced Metafile format (EMF). The EMF file can be generated via the following:
>>print -dmeta custModel.emf
Hope this helps!

Kategorien

Mehr zu Printing and Saving finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by