You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
The aim of this function is to create a tex-code picture of a Matlab figure in PSTricks syntax. The tex-file picture can still be adapted after creation and may be either a standalone tex-file or a file to be included in a larger document. The LaTeX packages pstricks, pst-node, pst-plot, pst-circ and moredefs are required. An minimal example latex code is generated at each time this script is run. The matlab code is based on the fig2tex file by Ercan Solak in 2005.
You can also download the latest version on
http://fig2texps.peter-scholz.net
Supported Features:
* 2D plots with arbitrary number of lines and patches
* Linear and logarithmic axes and second y-axis
* Grids, subgrids, ticks and subticks
* Arbitrary colors, linestyles and markers
* Labels, title, legend and colorbar
* Annotations (TextArrows) are supported
* GUI, where the fontsize, the plotsize and the export file can be set
* Lines with many datapoints can be compressed in order to reduce file size and compilation time (copied from Matfig2PGF by Paul Wagenaars in 2008)
* Convergence Triangles can be shown for logarithmic plots
* Support of additional code in PSTricks syntax
* Standalone Option for creating high quality cropped pdf-files
Cite As
Peter Scholz (2026). fig2texPS - Export Matlab Figure to LaTeX (https://www.mathworks.com/matlabcentral/fileexchange/25298-fig2texps-export-matlab-figure-to-latex), MATLAB Central File Exchange. Retrieved .
Acknowledgements
Inspired by: fig2tex, Matfig2PGF
General Information
- Version 1.6.0.0 (299 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.6.0.0 | Changes:
|
||
| 1.5.0.0 | New features implemented |
||
| 1.4.0.0 | Enhanced Features implemented |
||
| 1.3.0.0 | Link updated: http://fig2texps.peter-scholz.net |
||
| 1.2.0.0 | Changes to Version 0.42:
|
||
| 1.1.0.0 | Warning, if the 'DefaultFigureWindowStyle' is 'docked' |
||
| 1.0.0.0 |
