Rank: 828 based on 174 downloads (last 30 days) and 1 file submitted
photo

Zebb Prime

E-mail

Personal Profile:

 

Watch this Author's files

 

Files Posted by Zebb Prime
Updated   File Tags Downloads
(last 30 days)
Comments Rating
04 May 2010 matlabfrag A matlab figure to .eps and .tex file exporter, similar to LaPrint Author: Zebb Prime graphics import, graphics export, latex, psfrag, eps, tex 174 53
  • 4.90625
4.9 | 35 ratings
Comments and Ratings by Zebb Prime View all
Updated File Comments Rating
17 Sep 2013 matlabfrag A matlab figure to .eps and .tex file exporter, similar to LaPrint Author: Zebb Prime

Hi Charlie,

This sounds like a problem with pdfcrop. You should be able to fix it by changing:

crop=pdfcrop

to

crop=preview

in the latex file. Otherwise, to get pdfcrop working, you will need to make sure it is installed in Miktex (via the Package Manager), then make sure you have a working Perl installation (e.g. Activeperl).

Regards,
Zebb

04 Apr 2011 matlabfrag A matlab figure to .eps and .tex file exporter, similar to LaPrint Author: Zebb Prime

Herwig: The use of single dash or double dash with the --shell-escape option depends upon your LaTeX distribution. On my system, both variants work.

Fredrick: That is a pstool question, not a matlabfrag question. If you read the pstool documentation you'll see that you can specify \includegraphics options as options to \psfragfig, i.e.

\psfragfig[width=10cm]{...}

That said, the workflow I designed matlabfrag for is to resize the figure in matlab first, so as to prevent things like text running on top of tick labels, etc.

As for your other problem, I don't know what the problem it. Try updating your version of pstool.

26 May 2010 matlabfrag A matlab figure to .eps and .tex file exporter, similar to LaPrint Author: Zebb Prime

Hi Michael,

The way I would do it is to just set all fonts to the size corresponding to \small. Of course this won't change if you wish to change to document fontsize.

You could open the output .tex file, and edit the \matlabtextA, etc commands to use \small instead of \fontsize.

The reason I chose to use \fontsize is that the label positioning is dependent upon the chosen fontsize. This way, if it looks ok on the screen, it should look ok in the document too.

Regards,
Zebb

08 Apr 2010 matlabfrag A matlab figure to .eps and .tex file exporter, similar to LaPrint Author: Zebb Prime

Hi Benjamin,

The version checking bug should already be fixed in the latest version.

Regards,
Zebb

24 Mar 2010 matlabfrag A matlab figure to .eps and .tex file exporter, similar to LaPrint Author: Zebb Prime

Hi all,

Please disregard my use of \include in my comments above. Please use \input instead.

Cheers,
Zebb

Comments and Ratings on Zebb Prime's Files View all
Updated File Comment by Comments Rating
08 Dec 2014 matlabfrag A matlab figure to .eps and .tex file exporter, similar to LaPrint Author: Zebb Prime Laura

Since updating to Matlab 2014b; my legends are no longer typeset correctly by matlabfrag, because matlab introduced the "legend" object class and the labels are therefore no longer recognised as text objects. The text in the legend is stored in a multi-line cell, which matlabfrag can't handle. Does anyone have a solution for this?

30 Sep 2014 matlabfrag A matlab figure to .eps and .tex file exporter, similar to LaPrint Author: Zebb Prime Pablo

12 Aug 2014 matlabfrag A matlab figure to .eps and .tex file exporter, similar to LaPrint Author: Zebb Prime Charlie Hogg

Does anyone have any ideas on this exponent problem?

My guess is that matlab includes the exponents as a different kind of child of the plot object than other text, which causes trouble for matlabfrag. The axis exponents are difficult to access within matlab too.

25 Jul 2014 matlabfrag A matlab figure to .eps and .tex file exporter, similar to LaPrint Author: Zebb Prime Charlie Hogg

I have used this tool for ages and I think it's great.

I have one problem occasionally. When I try to plot a color bar which has an exponent (e.g. 10^-3), the exponent is not recognised in latex and the tag (e.g. 000) comes through.

Has anyone had this problem and found a work around? The tex file seems to be created ok, but the tag (000) in the eps file is not picked up.

My work around is to multiply the colour legend by the exponent and then add the exponent manually - not ideal.

Thanks,
Charlie

14 Jul 2014 matlabfrag A matlab figure to .eps and .tex file exporter, similar to LaPrint Author: Zebb Prime V_oron

Contact us