Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

export a figure to corel draw

824 views
Skip to first unread message

Lorenzo Nasi

unread,
Jan 9, 2002, 5:34:13 AM1/9/02
to
hi!
I would like to know how to export a figure (a plot for example) from
matlab to coreldraw without loosing any detail.
I have tried the formats .tiff .eps .emf and so on but I always loose
something, especially if the figure is made out of subplots.
Thanks,
Lollo

Ralph-Uwe Boerner

unread,
Jan 9, 2002, 9:53:13 AM1/9/02
to
Lorenzo,
you may want to look at exportfig, available at The MathWorks'
MatlabCentral.
It is highly recommended! I've had no problems with Corel Draw so far.
Only one thing: never import postscript text as text but as curves, since
symbol fonts get lost otherwise.

HTH,
Ralph-Uwe

"Lorenzo Nasi" <loren...@netscape.net> schrieb im Newsbeitrag
news:eea92...@WebX.raydaftYaTP...

Lorenzo Nasi

unread,
Jan 10, 2002, 10:04:01 AM1/10/02
to
hi Ralph-Uwe,
thanks for your help. I've downloaded the exportfig.m file and putted
it in matlab's current directory. How have you done to export the
figure figure.fig to corel draw?
if I type
EXPORTFIG(figure.fig, 'figure.cdr')
I receive the error message:
??? Undefined variable 'figure'.


what have you done to export your files?
thanks again,
lorenzo

Ben Hinkle

unread,
Jan 10, 2002, 1:50:54 PM1/10/02
to
MATLAB doesn't support exporting to CorelDraw's native format, so you
will have to use something like EPS. The exportfig function can be
helpful if you want to manage the fontsize or bounding box of the
exported file. For example if you want to create an EPS
file 'figure.eps' with a width of 6 inches and scaled fonts then
you'd execute:
 >> exportfig(gcf,'figure.eps','width',6,'fontmode','scaled');


If you could be more specific with what goes wrong when exporting I
might be able to find some parameters that would help.
good luck,
-Ben
bhi...@mathworks.com

Lorenzo Nasi

unread,
Jan 11, 2002, 9:17:22 AM1/11/02
to
Hi Ben,
I have the release 12 of matlab student running on win 98;
if I export the figure figure.fig into the file figure.eps (either
using exportfig or using file and export from the figure menu) when I
import it in Corel Draw 9.0 I only see a gray box where there is written
"figure.eps
Matlab, the Mathworks inc."


Another problem is that even if I select the copy figure, from the
figure menu, when I paste it in corel draw I loose something. For
instance, I have a figure made of subplots so by selecting copy
figure I should select the whole figure, not only one plot; but only
one plot appears when I paste to Corel. (I loose too the y-axis values
in this procedure but this a minor problem)


Finally, I have tried a lots of output file formats .tiff, .emf, but
when I import in Corel I always loose details (axis labels for example).


Thanks for your help!
Lorenzo

Ben Hinkle

unread,
Jan 11, 2002, 11:01:24 AM1/11/02
to
Lorenzo,
I'd export as EPS and make sure there is a TIFF preview:
print -deps -tiff figure.eps
That way when you import it into CorelDraw you will get the TIFF image
onscreen (instead of "figure.eps Matlab...")and you'll still print using
the high-resolution EPS part. Unfortunately, it looks like there is no way
to import a figure into CorelDraw in such a way that you can select items in
the figure and edit them. You can only import the figure as one big object.
Hopefully this is good enough for what you need to do. I've added an
enhancement request to support CorelDraw's cdr format in a future release.

I also tried copying the figure to the clipboard both as a metafile and as a
bitmap and I noticed the same things you did - that they paste into
CorelDraw in very strange ways. Pasting into Microsoft products seems to
work fine, so I'm not sure what is going wrong with CorelDraw. I'd suggest
sticking to EPS with a preview.

good luck,
-Ben
bhi...@mathworks.com

"Lorenzo Nasi" <loren...@netscape.net> wrote in message
news:eea9...@WebX.raydaftYaTP...

0 new messages