Rank: 779 based on 186 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 graphics import, graphics export, latex, psfrag, eps, tex 186 50
  • 4.89286
4.9 | 31 ratings
Comments and Ratings by Zebb 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's Files View all
Updated File Comment by Comments Rating
10 Apr 2014 matlabfrag A matlab figure to .eps and .tex file exporter, similar to LaPrint Author: Zebb Prime Budisic, Marko

I've been using this great tool for years, so thank you for making it.

However, I've just spotted a (possible) bug. When colorbar is displayed where number of color levels is relatively small, e.g., 5, matlabfrag-generated EPS will have a smooth color interpolation between those values.

For example, an empty plot, with just a colorbar:

colormap(jet(5)); colorbar

in Matlab figure looks as expected (five discrete color levels from jet map), yet in EPS the figure has a much larger number of levels, looking more like

colormap(jet(32)); colorbar

Additionally, the end colors in EPS range from light blue to orange, instead of purplish-blue to deep red (as in Matlab).

Is there an easy fix for this?

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

Gah, I edited the code to get it to do what I want, but now the background boxes are too big, rather than too small.

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

Thanks for this, the tool produces some great looking figures!

I just have one problem, related to text with a background color. The text is replaced by key values (for psfrag) before output, so the background color is much smaller than the eventual text. Is there any way around this? Maybe padding key values with zeros so they are the same length (in characters) as the original text?

02 Mar 2014 matlabfrag A matlab figure to .eps and .tex file exporter, similar to LaPrint Author: Zebb Prime Octopode

Hi. Nice tool, thanks.
I have trouble with multiple 3D axes, and the "OpenGL" renderer set in matlabfrag. With more than 1 axis, any other axes are ignored, while the text around it is accounted for.
See the sample :
http://s24.postimg.org/ogr9myeut/multi_axes_Open_Gl.png

There is not problem with the other renderer, all axes show up.
Any idea how to fix this ? I do need OpenGL renderer.

27 Jan 2014 matlabfrag A matlab figure to .eps and .tex file exporter, similar to LaPrint Author: Zebb Prime Kucera, Stepan

a patch for a bug - add/replace lines marked by % <<<<

VAlign = get(handle,'VerticalAlignment');
switch VAlign
case {'baseline'} % <<<<
valign = 'B'; % <<<< this case must be distinguished in accordance with psfrag rendering in latex
case {'bottom','base'} % <<<<
valign = 'b';
case {'top','cap'}
valign = 't';
case {'middle'}
valign = 'c';
otherwise
warning('matlabfrag:UnknownVertAlign',...
'Unknown text vertical alignment for "%s", defaulting to bottom',string);
valign = 'l';
end

Contact us