I'm trying to find a way to embed matplotlib graphs in LaTeX
documents. Ideally a solution would involve converting MPL's output
to TikZ in order to get native rendering of the graphics and text.
This seems like the "Right Way" to go, unfortunately, my classes start
on Monday, and I'm neither python nor TeX guru enough to begin a
project so ambitious and important. This is what I have done so far,
benevolent user that I am,
What's wrong with including the ps/eps output in your latex docs, or
the pdf output for your pdflatex docs? That's what most people do.
You can enable the "usetex" option if you want tex to render the text
On Thu, Aug 20, 2009 at 4:08 PM, Justin Findlay<jfindlay@...287...> wrote:
I'm trying to find a way to embed matplotlib graphs in LaTeX
documents. Ideally a solution would involve converting MPL's output
to TikZ in order to get native rendering of the graphics and text.
This seems like the "Right Way" to go, unfortunately, my classes start
on Monday, and I'm neither python nor TeX guru enough to begin a
project so ambitious and important. This is what I have done so far,
benevolent user that I am,
The difference is subtle. By having the graphics and text rendered by
the different system they will end up having a different 'look'. I
know that usetex solves most of the text-in-graphics issues, and that
TeX wasn't even designed to really layout anything but text and the
most minimal vector graphics, but TikZ is more than adequate for plots
and stands on its own merit as a fully-featured graphics language.
TeX+TikZ finally eliminates the need for external vector hackery. Of
course, I'll probably just use pdf and usetex as you suggest, but I
was hoping for something better.
Justin
(stupid gmail reply to defaults)
···
On Thu, Aug 20, 2009 at 3:56 PM, John Hunter<jdh2358@...287...> wrote:
What's wrong with including the ps/eps output in your latex docs, or
the pdf output for your pdflatex docs? That's what most people do.
You can enable the "usetex" option if you want tex to render the text
I'm trying to find a way to embed matplotlib graphs in LaTeX
documents. Ideally a solution would involve converting MPL's output
to TikZ in order to get native rendering of the graphics and text.
This seems like the "Right Way" to go, unfortunately, my classes start
on Monday, and I'm neither python nor TeX guru enough to begin a
project so ambitious and important. This is what I have done so far,
benevolent user that I am,
If anyone has more information on this or code to this effect I would
be very interested in learning/contributing.
Last year I spent an evening trying to modify the ps or pdf backends to be a PGF/TIKZ backend. I wasn't very successful, but I was also trying to learn the system too. It seems like it would be easy to implement the few primitives in PGF instead of postscript, since the models are pretty similar, from what I recall. I haven't spent the time to revisit it, though, and it probably won't make it back to the top of my list for a while.