[Gmsh] [patch] New output file format (.pgf) for publication grade figues (LaTeX)
Sebastian Eiser
sebastian at eiser.at
Tue Apr 8 11:30:02 CEST 2014
Hi Christophe,
I had to change only one thing: Obtaining the PixelBuffer must be done
_after_ the axes/value bar/orientation widget is turned off. I have hence
moved this part back to CreateFile.cpp. This was breaking 2d exports.
I also corrected a small bug on my side and added units to the axis labels
in the three dimensional case.
Thanks for merging it, I'm proud to contribute!
-Sebastian
On Mon, Apr 7, 2014 at 11:46 PM, Christophe Geuzaine <cgeuzaine at ulg.ac.be>wrote:
> 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
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.geuz.org/pipermail/gmsh/attachments/20140408/ca33807a/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: small_improvement.patch
Type: text/x-diff
Size: 8270 bytes
Desc: not available
URL: <http://www.geuz.org/pipermail/gmsh/attachments/20140408/ca33807a/attachment.patch>