image thumbnail

fix_lines

version 1.5.0.1 (3.03 KB) by Oliver Woodford
Improves the style of lines in MATLAB generated eps files

6.8K Downloads

Updated 04 Jan 2019

View License

Editor's Note: This file was selected as MATLAB Central Pick of the Week

This function is deprecated. Please use EXPORT_FIG (also available on the File Exchange).

This function improves the style of lines in eps files generated by MATLAB's print function, making them more similar to those seen on screen. Grid lines are also changed from a dashed style to a dotted style, for greater differentiation from dashed lines.

The screenshot demonstrates the improvements, with the figure (top right) being printed to eps (bottom left), which is then improved (bottom right) using FIX_LINES. Note how the effect becomes more marked on thicker lines.

The function additionally moves any embedded fonts after the bounding box information, to ensure correct cropping in Ghostscript.

Cite As

Oliver Woodford (2021). fix_lines (https://www.mathworks.com/matlabcentral/fileexchange/23604-fix_lines), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2007b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Acknowledgements

Inspired by: FIXPSLINESTYLE

Community Treasure Hunt

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

Start Hunting!