Potentially very useful, as this is an area in which the Mathworks' own solutions are woeful with no signs of improvement. However, with no updates since 2004 I'm not holding my breath for vital fixes to this utility.
For me, the main problems are:
- using texShop on a Mac, and the tags simply aren't being updated so are typeset in the finished document as x01, x02 etc (to be fair this might be a latex issue).
- axes scales (x10^p etc) are placed incorrectly
- legend sizes aren't handled
... and that's before trying anything challenging like having patch objects or 3D plots etc.
Some users may consider googling for psfragx and psfragx.m, which allow overlays of pictures and inclusion of graphics in a more flexible way within latex. Still reliant on Laprint though, so the bugs above won't go away.
1
24 Aug 2011
LaPrint
LaPrint prints a MATLAB figure to file for neat inclusion in LaTeX documents.
There is a small Bug in the script when using it with 3D plots. The z-axis is not preserved. The solution is:
The lines 1189 to 1191 and 1782 to 1784 should be changed from:
-set(zlimmodeauto,'ylimmode','manual')
-set(ztickmodeauto,'ytickmode','manual') -set(zticklabelmodeauto,'yticklabelmode','manual')
to:
+set(zlimmodeauto,'zlimmode','manual') +set(ztickmodeauto,'ztickmode','manual')
+set(zticklabelmodeauto,'zticklabelmode','manual')
The only problem was a typo, when setting zticklabel modes the actual property was ylabel.
Great work BTW!
5
11 Aug 2011
LaPrint
LaPrint prints a MATLAB figure to file for neat inclusion in LaTeX documents.
These type of programs seem very nice at first glance, however you come to trouble when it come to real issues. i wasted about 3 hours on laprint, however at end i come to conslusion that title('$\hat{a}$','Interpreter','latex') is the best. you loose flexibility when using laprint.
1
03 Nov 2010
LaPrint
LaPrint prints a MATLAB figure to file for neat inclusion in LaTeX documents.
Comment only