Rank: 356 based on 180 downloads (last 30 days) and 1 file submitted
Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Files Posted by Zebb
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 latex, tex, graphics import, psfrag, eps, graphics export 180 36
  • 4.85
4.8 | 21 ratings
Comments and Ratings by Zebb View all
Updated File Comments Rating
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

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

Hi All,

Viton: That should be possible, but I don't have time to do implement anything like that at the moment.

Andrey: That should only be necessary if you aren't grouping the figures properly. They placing \begin{psfrag} \end{psfrag} around your \include and \includegraphics.

Vincent: There isn't a way to do this using the default axis labels in matlab. You could however convert the axis labels to text objects. There are several functions that do this in the FEX, one is http://www.mathworks.com/matlabcentral/fileexchange/23841-format-tick-labels-extended (disclaimer - I haven't used this file myself)

David: What version are you using? You haven't provided enough information for me to diagnose the problem. Make sure you are using the latest version, and email me an example of the problem.

Hans: I did a quick test, and it looked the same in the document as it did on the screen. The easiest way to fix this would be to manipulate the position handles of legend, and if necessary the axis.

I also want to remind everyone that the comment section isn't a very good medium for receiving support.

Cheers,
Zebb

Comments and Ratings on Zebb's Files View all
Updated File Comment by Comments Rating
27 May 2011 matlabfrag A matlab figure to .eps and .tex file exporter, similar to LaPrint Author: Zebb Prime Halecky, Nicholaus

Hey Zebb,
I am a huge fan of LaTeX (used it to write my dissertation), and had I known of your function -- well, my life would have been a bit different. Very nice work.
Two comments:
1) The sortrows function in MatLab 2011a has been changed to perform a check on input array with ismatrix, and as such, throws an error within matlabfrag. I made a simple fix by changing the sortrows to sort as below (lines 262 to 282), however, I didn't check if this changes the sort logic:
% Sort by text size first
%[Y,I] = sortrows(cell2mat( PsfragCmds(:,4)))
[Y,I] = sort( cell2mat( PsfragCmds(:,4) ) ); %#ok<*ASGLU> Required for backward compatibility
PsfragCmds = PsfragCmds(I,:);
% Now sort by colour
[Y,I] = sortrows( cell2mat( PsfragCmds(:,5) ), [3 2 1] );
PsfragCmds = PsfragCmds(I,:);
% Now sort by font angle
[Y,I] = sort( cell2mat( PsfragCmds(:,6) ) );
PsfragCmds = PsfragCmds(I,:);
% Now sort by font weight
[Y,I] = sort( cell2mat( PsfragCmds(:,7) ) );
PsfragCmds = PsfragCmds(I,:);
% Now sort by whether it is 'fixed width'
[Y,I] = sort( cell2mat( PsfragCmds(:,8) ) );
PsfragCmds = PsfragCmds(I,:);
% Now sort by label type
[Y,I] = sort( PsfragCmds(:,9) );
PsfragCmds = PsfragCmds(I,:);
clear Y
2) How does matlabfrag handle background color in text annotations? I am trying to publish a few statistics and an equation on the plot, but haven't had much luck.

Thank you again, it's really an incredible function,
Cheers,
Nicholaus

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

Thanks for that Zebb!

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

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.

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

How do you resize a figure in pdftex using the command \psfragfig{S10MeanPeakt111}? And for me I cannot specify a eps/tex combination that is not in the same directory for some reason.

Top Tags Applied by Zebb
eps, graphics, graphics export, graphics import, latex
Files Tagged by Zebb
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 latex, tex, graphics import, psfrag, eps, graphics export 180 36
  • 4.85
4.8 | 21 ratings

Contact us at files@mathworks.com