Problem in copying figure in MATLAB 2014b
Ältere Kommentare anzeigen
There is a problem in copying figure in MATLAB 2014b.
When I copy a figure to clipboard in metafile format, that figure is distorted when pasted.
For example, I have following figure.

After copying the figure in metafile format and pasting it, this figure becomes

Of course, this figure is not distorted when copied in bitmap format and pasted.

There wasn't such problem like this when I was using MATLAB2013a before. Is it a bug in MATLAB2014b? And how can I fix this problem?
Antworten (4)
Manuel Brose
am 18 Mai 2017
Bearbeitet: Manuel Brose
am 18 Mai 2017
1 Stimme
It happens also on my 2014b version. The first "copy figure" works just fine but after copying it again figures get distorted. I've found out, that it doesn't matter how it's saved, e.g., having it on clipboard or saving it directly as emf. It seems that MATLAB can't handle the copy figure procedure after some unknown circumstances. A simple workaround which helps at the moment: Restart MATLAB, run script and i can copy all figures multiple times without having any distortions.
1 Kommentar
Gautham Ram
am 15 Aug. 2017
This solution worked!
Sudharsana Iyengar
am 18 Dez. 2014
have you tried this
eval(['print -dmeta nameofyourfile.emf']);
1 Kommentar
Yong-Cheol Kwon
am 18 Dez. 2014
Ehsan Asadi
am 18 Feb. 2015
0 Stimmen
try this:
in the figure, go to edit>copy option> select metfile
it worked for me.
now I can easily use copy option with high quality.
1 Kommentar
Prajwol Tamrakar
am 29 Mai 2020
Yes. It worked. It was so simple. :). Thanks a lot.
Henrik Åsheim
am 26 Feb. 2015
0 Stimmen
I have found the metafile option works fine for simpler single graph things, but troubles with some subplot I have.
Kategorien
Mehr zu Creating, Deleting, and Querying Graphics Objects finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
