Note: This discussion is about an older version of the COMSOL Multiphysics® software. The information provided may be out of date.
Discussion Closed This discussion was created more than 6 months ago and has been closed. To start a new discussion with a link back to this one, click here.
How can I export an eps image (vector graphics)?
Posted 6 sept. 2012, 09:44 UTC−4 Version 4.0, Version 4.0a, Version 4.1, Version 4.2, Version 4.2a, Version 4.3, Version 4.3a, Version 4.4 15 Replies
Please login with a confirmed email address before reporting spam
I would like to export an image of the model geometry as an .eps file (vector graphics). I could not find how to do that and it seems that the only options are jpg, png and bmp.
Thank you.
Please login with a confirmed email address before reporting spam
indeed COMSOL does not make ALL formats, but arnt htere some translators out on the free market ?
and perhaps suggest the format to "support" it might appear in a future release, if one do not need to pay extra for that one ;)
--
Good luck
Ivar
Please login with a confirmed email address before reporting spam
Thank you for your quick reply. I'm not sure I understood your answer - is this option impossible in COMSOL (4.2a) ? This is really odd as the geometry surly coded as a vector graphics (you can zoom-in infinitly) and this is a common requirement for scientific articles. I'm sure I'm not the first that ask for eps picture.
Matan
Please login with a confirmed email address before reporting spam
Please login with a confirmed email address before reporting spam
I do agree with you, but that is also why I suggest that you send your question to support, here on the Forum we are only users of COMSOL, not COMSOL developpers ;)
Then what I do not know is if eps is a Adobe protected format, in which case it probably requires some licence agreements, hence also increasing in cost of the COMSOl software for us. I personally prefer to use my maintenance budget to save get new physics modules, rather than to have all file formats, even if eps is rather "common".
But then my need is not to write articles, but to write reports to my clients of my COMSOLl results, so I can happily live with jpg and png ;)
--
Good luck
Ivar
Please login with a confirmed email address before reporting spam
Please login with a confirmed email address before reporting spam
Thank you very much for your quick reply and helpful suggestions. I'll go with saving the picture as a high resolution png and will send COMSOL a suggestion for having a vector graphics export feature in their future versions.
Please login with a confirmed email address before reporting spam
Please login with a confirmed email address before reporting spam
Its EASY to get eps image in COMSOL4.0 and above.
In COMSOL 4.0 and advanced version just above the plot windo there is a 'camera' to export picture. Click on it you will get a popup windo of image snapshot, there in targets you select 'file' option. Once you go for file you can see different extension 'eps' is also an option there.
Good luck for your journal submission
regards,
Ashish
Please login with a confirmed email address before reporting spam
I'm struggling with the same problem as you guys, but also if I use the "camera", I can't export something in an eps format(this option does not exist) and I'm using COMSOL 4.4.
Can somebody tell me what went wrong?
Best
Sergio
Please login with a confirmed email address before reporting spam
Please login with a confirmed email address before reporting spam
thanks for your very quick response. The Plot I want to export is a 2D or 3D Plot. Is there really no possibility of exporting it as .eps? I need the Plot as an .eps file. Do you have any other suggestions how I can get a very good resolution as .png?
Best and thanks for your help.
Sergio
Please login with a confirmed email address before reporting spam
thanks for your very quick response. The Plot I want to export is a 2D or 3D Plot. Is there really no possibility of exporting it as .eps? I need the Plot as an .eps file. Do you have any other suggestions how I can get a very good resolution as .png?
No, there is no way to export a 2D or 3D plot to EPS. PNG is usually the best format; set the Resolution in the Image Snapshot to the DPI of the media where you will use the code, and set the image's size in pixels or millimeters depending on what you will use it for.
Please login with a confirmed email address before reporting spam
After that I export it to SVG format using the plot2svg function, available through Matlab Exchange Central.
I prefer SVG than EPS, but if you need EPS then I believe that would be even easier.
Also, I add my vote for a vectorial graphics export option!!
Felipe BM
Please login with a confirmed email address before reporting spam
You can use the Livelink with matlab, open the figure in matlab using the function
mphgeom (for the geometry of your problem)
mphplot (for a physical field you computed)
I had to change the renderer of matlab to do get real eps.
After opening the livelink, a typical command line in matlab command window is
mphgeom(model); %displays the geometry in matlab
axis equal
axis off % removes the axis the figure
set(gcf,'Renderer','painters'); %default is OpenGL, it doesn't work here. You may get some warnings here
%about RGB display.
print('-depsc','simulation_geometry'); %saves the eps
Also, you can import the data in matlab (mpheval) and then display them using matlab functions, such as contourf, and save them as eps using the print command.
Please login with a confirmed email address before reporting spam
Thanks for sharing!
Do you know if this is possible to do with a surface plot?
I want the plot axes and the numbers as vectorials, and the surface plot as a embedded bitmap. Unfortunately, Painters renderer is not able to do this.
Do you know a way to achieve this result?
cheers,
Felipe Beltran-Mejia
Note that while COMSOL employees may participate in the discussion forum, COMSOL® software users who are on-subscription should submit their questions via the Support Center for a more comprehensive response from the Technical Support team.
Suggested Content
- BLOG How to Create High-Quality Model Images in COMSOL Multiphysics®
- FORUM How to export Structured grid in COMSOL
- KNOWLEDGE BASE I get an error message when trying to open my glTF-file in an external viewer
- FORUM Issue with Image Resolution When Exporting from COMSOL
- BLOG How to Link COMSOL Graphics to Microsoft® PowerPoint®