Skip to content

A MATLAB script to export figures using a system installation of LaTeX to process text objects.

License

Notifications You must be signed in to change notification settings

dmlipinski/LaTeX-Fig

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LaTeX-Fig

A MATLAB script to export figures using a system installation of LaTeX to process text objects.

Basic usage: Make sure the latex_fig.m file is in your MATLAB path and type help latex_fig. Also see the example.m file for an example usage case.

Known issues:

  • Rasterized plot objects are placed in front of all text and vector objects. This is especially an issue for 3D plots with the plot box on since the front edges of the plot box will appear behind any rasterized plot objects.
  • There are many issues with multiple axes appearing on the same figure when the '-rasterize' option is used, especially if the axes overlap.
  • Text generated on top of plots using the text command can appear in the wrong location and appears behind any rasterized objects.

Improvements coming soon:

  • Add Windows support.
  • Move to a more complete layering system when the '-rasterize' option is present so that multiple axes, axis background colors, and the figure color can all be included in the correct order. This should be accomplished by first laying down the figure background color, then looping through the axes (direct children of the figure) from back to front. For each axis, there should be three layers: a background layer for axis color and the back of the plot box. A middle layer for rasterized plot objects, and a front layer for the remaining vector objects.

About

A MATLAB script to export figures using a system installation of LaTeX to process text objects.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages