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

Christophe Geuzaine cgeuzaine at ulg.ac.be
Mon Apr 7 23:46:15 CEST 2014


On 07 Apr 2014, at 19:21, Sebastian Eiser <sebastian at eiser.at> wrote:

> 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 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, 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.
> 

Dear Sebastian,

Thanks for this great patch! I've merged a modified version, with most of the code moved to Graphics/gl2pgf.cpp. 

Can you give it a try and let me know if I broke anything?

Thanks,

Christophe

> -Sebastian
> <post.png><quarter-ring.png><pgfplots.patch><pgfplots_gmsh.pdf>_______________________________________________
> gmsh mailing list
> gmsh at geuz.org
> http://www.geuz.org/mailman/listinfo/gmsh

-- 
Prof. Christophe Geuzaine
University of Liege, Electrical Engineering and Computer Science 
http://www.montefiore.ulg.ac.be/~geuzaine