|
|
| File Information |
| Description |
PLEASE NOTE - This function has now been superseded by EXPORT_FIG, which encompasses all its functionality plus some further functionality. This function will therefore no longer receive any support. EXPORT_FIG can be downloaded from:
http://www.mathworks.com/matlabcentral/fileexchange/23629
PRINT_EPS saves a figure to an eps file, with:
- Figure borders cropped
- Fonts embedded (as subsets)
- Accurate vector graphics, compressed losslessly
- High quality bitmap graphics, compressed lossily
- Line dash lengths vary with line width (as on screen)
- Grid lines given their own dot style, instead of dashed
- No options to be set
PRINT_EPS requires only a target filename and an optional figure handle - there are no other options to be set. The output eps is exactly the size and layout of the figure on the screen. Additionally, line styles for dotted and dashed lines are improved for clarity, along with grid lines, resembling better those in the original figure. The function is perfect for generating eps figures for use in scientific publications.
PRINT_EPS uses ghostscript and pdftops (from the Xpdf package), so these must be installed on your system and the executables must be on your system's path. Get them from -
Ghostscript: http://www.ghostscript.com
Xpdf: http://www.foolabs.com/xpdf |
| Acknowledgements |
The author wishes to acknowledge the following in the creation of this submission:
savefig
This submission has inspired the following:
export_fig
|
| MATLAB release |
MATLAB 7.5 (R2007b)
|
| Other requirements |
Ghostscript, Xpdf |
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Updates |
| 01 Dec 2008 |
Avoid changing figure position units |
| 11 Dec 2008 |
Fix line styles to look more like those on screen |
| 11 Dec 2008 |
Fix line styles, and set grid lines to a different style from dotted lines |
| 11 Dec 2008 |
Improve finding of grid lines to update line style |
| 12 Dec 2008 |
Change dash length with line width |
| 15 Dec 2008 |
Improved line styles for thinner lines |
| 19 Jan 2009 |
Allow full and relative paths. Allow paths with spaces in. Fix distance between grid line dots. Avoid bbox error with gsview. |
| 09 Feb 2009 |
Bug fix to fix_lines subfunction |
| 12 Feb 2009 |
Pass figure handle to print as a double, not a string. Allow printing of gui elements. |
| 08 Apr 2009 |
Reduce memory footprint to allow conversion of larger files |
| 14 Apr 2009 |
Supereseded by EXPORT_FIG |
|
MATLAB Central Terms of Use
NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for
all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content.
Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available
via MATLAB Central.
Read the complete Terms prior to use.
Contact us at files@mathworks.com