fix_lines

Improves the style of lines in MATLAB generated eps files

您现在正在关注此提交

编者注: 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.

引用格式

Oliver Woodford (2026). fix_lines (https://ww2.mathworks.cn/matlabcentral/fileexchange/23604-fix_lines), MATLAB Central File Exchange. 检索时间: .

致谢

参考作品: FIXPSLINESTYLE

类别

Help CenterMATLAB Answers 中查找有关 Printing and Saving 的更多信息

一般信息

MATLAB 版本兼容性

  • 兼容任何版本

平台兼容性

  • Windows
  • macOS
  • Linux
版本 已发布 发行说明 Action
1.5.0.1

Deprecate

1.5.0.0

Fix bug (only affecting R2006b & earlier) introduced in last update

1.4.0.0

Attempt to fix problem caused by tiff preview, as reported by D Ko (thanks). No error in ghostview now, though last drawn line disappears (only with tiff preview).

1.3.0.0

Move embedded fonts after bounding box info (for R2006b and earlier).

1.2.0.0

Better error recovery. Improved backwards compatibility. Reduced memory requirements.

1.0.0.0