[Matplotlib-users] embedding matplotlib in C++ and closing the matplotlib window

2007-10-11 Thread Alexander Schmolck
Hi, I'm using matplotlib in a C++ app (with a qt4 gui), by embedding python with boost::python. The C++ app calls Py_Initialize(), init_myplottingmodule(), and boost::python::import("matplotlib.pylab") once on startup and certain GUI events then fire up a matplotlib window via calls like this one:

Re: [Matplotlib-users] using different font families with?LaTeX-generated text

2007-05-18 Thread Alexander Schmolck
Darren Dale <[EMAIL PROTECTED]> writes: >> Well, if ever there was a compelling use-case for an >> undocumented/unsupported feature it would be this one, I think. > > Alright, svn 3277 lets you add additional commands to the preamble: > > text.latex.preamble : \usepackage{bm},\renewcommand{etc...}

[Matplotlib-users] Patch to fix stale tex cache issues [Was: using different font families with?LaTeX-generated text]

2007-05-18 Thread Alexander Schmolck
Darren Dale <[EMAIL PROTECTED]> writes: > You should also make your rc changes before importing pylab. That might be > considered a bug, and would take some work to fix. I think I've fixed the bug (well, mostly see TODO), as well as a few other minor bugs: - ``__init__.py`` * defaultParams va

Re: [Matplotlib-users] using different font families with?LaTeX-generated text

2007-05-17 Thread Alexander Schmolck
Darren Dale <[EMAIL PROTECTED]> writes: > On Thursday 17 May 2007 10:08:06 am Alexander Schmolck wrote: >> "George Nurser" <[EMAIL PROTECTED]> writes: >> > I didn't realize that! >> > Apologies for being ignorant here. >> >>

Re: [Matplotlib-users] using different font families with?LaTeX-generated text

2007-05-17 Thread Alexander Schmolck
"George Nurser" <[EMAIL PROTECTED]> writes: > I didn't realize that! > Apologies for being ignorant here. > No worries, here's a concrete example for selecting Helvetica (and commented out, Palatino) as default fonts: from matplotlib.pylab import * from numpy import * #rc('font',**d

Re: [Matplotlib-users] using different font families with?LaTeX-generated text

2007-05-17 Thread Alexander Schmolck
"George Nurser" <[EMAIL PROTECTED]> writes: > Published figures will generally be embedded in text that is Times/ > Palatino etc. > Computer Modern doesn't look right inside such text. > > If it were possible to allow use of the other font packages, it would > be very useful. It already is, see e

Re: [Matplotlib-users] using different font families with?LaTeX-generated text

2007-05-16 Thread Alexander Schmolck
Darren Dale <[EMAIL PROTECTED]> writes: > On Monday 14 May 2007 1:29:05 pm Alexander Schmolck wrote: >> Darren Dale <[EMAIL PROTECTED]> writes: >> I'd *really* like the ability to ``usepackage`` for various reasons and it >> would clearly add useful function

Re: [Matplotlib-users] using different font families with?LaTeX-generated text

2007-05-14 Thread Alexander Schmolck
Darren Dale <[EMAIL PROTECTED]> writes: > On Monday 14 May 2007 9:02:08 am Lev Givon wrote: >> In the matplotlib-users list archive, I noticed that someone once >> mooted the possibility of patching the matplotlib LaTeX code to >> provide a user-configurable parameter that would allow one to add >