[Gmsh] [patch] New output file format (.pgf) for publication grade figues (LaTeX)

Sebastian Eiser sebastian at eiser.at
Mon Apr 7 19:21:51 CEST 2014


Dear gmsh community,
this is my first patch, and I'm submitting it in the hope that it is useful
to some.

This patch adds support for *pgfplots
<http://sourceforge.net/projects/pgfplots> figure output* of gmsh. It
supports the drawing of colorbars and axes using LaTeX, on top of a raw
.png file. I called it 'pgf' because 'tex' was already taken, and pgf is
the underlying technology of *pgfplots*. You get stunningly precise labels
and consistency in your LaTeX document (linewidths, math, etc). Your
colleagues will surly be impressed.

For a quick view, see the attached figures. For more demos and an
explanation of the options, look at the attached pdf. To install pgfplots,
see the pgfplots manual <http://pgfplots.sourceforge.net/pgfplots.pdf>, but
chances are high that it already came with your TeX distribution.

I am attaching the diff to revision 18219 (latests), but it should work on
most recent sources.

@Christophe: Feel free to merge this in the trunk if you find it useful.

-Sebastian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.geuz.org/pipermail/gmsh/attachments/20140407/db5b87bf/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: post.png
Type: image/png
Size: 83970 bytes
Desc: not available
URL: <http://www.geuz.org/pipermail/gmsh/attachments/20140407/db5b87bf/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: quarter-ring.png
Type: image/png
Size: 96541 bytes
Desc: not available
URL: <http://www.geuz.org/pipermail/gmsh/attachments/20140407/db5b87bf/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pgfplots.patch
Type: text/x-diff
Size: 35874 bytes
Desc: not available
URL: <http://www.geuz.org/pipermail/gmsh/attachments/20140407/db5b87bf/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pgfplots_gmsh.pdf
Type: application/pdf
Size: 909275 bytes
Desc: not available
URL: <http://www.geuz.org/pipermail/gmsh/attachments/20140407/db5b87bf/attachment.pdf>