Re: [Matplotlib-users] draw() doesn't always force draw on qt4?

2008-04-24 Thread Matthias Michler
Hello Glen, I'm not sure, but maybe it would help to use ax = subplot(111) and ax.plot(arange(it)) instead of plot(arange(it)) or to call a second draw() after plotting. regards Matthias On Wednesday 23 April 2008 20:49:46 Glen W. Mabey wrote: Hello, I'm using today's svn source and I'm

Re: [Matplotlib-users] Different between canvas.draw() and canvas.restore_region()??

2008-04-24 Thread G Jones
I'm confused, because I don't see any place where self.canvas.draw is called in the code1 version. Also, when I resize the figure, the background region changes, so the plot gets messed up as I have noticed before with this method. Does anyone know a good way to recapture a clean background, in

Re: [Matplotlib-users] problem with dynamic subplots and wx

2008-04-24 Thread Michael Droettboom
The clipping rectangle was using inverted y-coordinates (origin at bottom), rather than origin at top. This has been fixed in SVN trunk r5067. FWIW, this seems to be specific to the Wx rendering backend, and doesn't happen with Agg, Gtk, Cairo etc. Cheers, Mike Brian Blais wrote: On Apr 23,

Re: [Matplotlib-users] draw() doesn't always force draw

2008-04-24 Thread Darren Dale
On Wednesday 23 April 2008 02:49:46 pm Glen W. Mabey wrote: Hello, I'm using today's svn source and I'm surprised that the following loop does not get redrawn 10 times. for it in range( 10 ): plot( arange( it ) ) draw() raw_input(); That is, within a 'ipython -pylab'

Re: [Matplotlib-users] font always the same in PNG

2008-04-24 Thread Michael Droettboom
The font lookup mechanism has been much improved in 0.91.2 -- you may want to try using that. In 0.90.x, often if you don't get a perfectly exact match for a font, it reverts back to the default Vera Sans. Vera Sans, however, is not a fixed-width font. Can you provide the png file of

Re: [Matplotlib-users] legend is not properly drawn when a plot is saved in 'pdf' format

2008-04-24 Thread Michael Droettboom
I don't suspect another distro will make a difference. The bug is in matplotlib's Cairo backend (it's interface to Cairo), not in Cairo itself. Change your backend to PDF and you can avoid this bug. In the meantime, we'll need to fix the Cairo backend in matplotlib. Sorry I wasn't clearer

Re: [Matplotlib-users] win32 build error in _path.cpp: 'numeric_limits' : is not a member of 'std'

2008-04-24 Thread Michael Droettboom
Thanks. Your suggested changes (slightly modified) are in SVN r5070. Thanks for the warning output -- I'll try to tackle some of those as well. Cheers, Mike Martin Spacek wrote: It worked! I had to make a few changes, and there's lots of warnings, but it's now compiling. I've attached a

Re: [Matplotlib-users] failed to save in 'eps' format when I use latex environment

2008-04-24 Thread Darren Dale
On Thursday 24 April 2008 08:53:47 am you wrote: Although the 'align' environment inside the figure environment does not cause any error, tt seems like that the 'put' command from the 'picture' environment in LaTeX does not accept \begin{something} ~ \end{something} or \[~\]. As you pointed

Re: [Matplotlib-users] font always the same in PNG

2008-04-24 Thread Paul Smith
Michael Droettboom [EMAIL PROTECTED] writes: The font lookup mechanism has been much improved in 0.91.2 -- you may want to try using that. In 0.90.x, often if you don't get a perfectly exact match for a font, it reverts back to the default Vera Sans. Vera Sans, however, is not a

Re: [Matplotlib-users] failed to save in 'eps' format when I use latex environment

2008-04-24 Thread Jouni K . Seppänen
Darren Dale [EMAIL PROTECTED] writes: pdf output uses dviread.py to parse the dvi files created by latex, get the font layout information, and place the glyphs. [...] there are some subtle and difficult to resolve limitations of dviread (like rendering greek letters in math mode) that have

Re: [Matplotlib-users] font always the same in PNG

2008-04-24 Thread Michael Droettboom
Paul Smith wrote: Hi Michael, I put in the rc line you suggested below into fonts_demo.py but didn't see it print any extra info (but did confirm in ipython that rcParams showed verbose.level had changed to annoying). It just quietly finished otherwise. Did I miss something here?

Re: [Matplotlib-users] How do you static link to freetype when building eggs?

2008-04-24 Thread Christopher Barker
Chris wrote: export CFLAGS=-arch i386 -I/Developer/src/libpng -I/Developer/src/freetype/include export LDFLAGS=-arch i386 -L/Developer/src/libpng -L/Developer/src/freetype rm -rf build python setupegg.py bdist_egg The build of freetype in /Developer/src/freetype does not even have

Re: [Matplotlib-users] How do you static link to freetype when building eggs?

2008-04-24 Thread Christopher Barker
One more comment: Chris wrote: maptlotlib is the only missing piece of the superpack of modules that I distribute for OSX. The Superpack is great, but please, please, please built it Universal -- if you do that, then we'll solve a lot of distribution issues for OS-X python users everywhere.

[Matplotlib-users] find_best_location for axes ?

2008-04-24 Thread Antonino Miceli
Hi, I want to inset one axes within a larger one... as in http://matplotlib.sourceforge.net/screenshots/axes_demo.py and http://matplotlib.sourceforge.net/screenshots/axes_demo_small.png but I was wondering if there is an option similar to best location in the legend function. So, instead

[Matplotlib-users] OSX build under universal python fails

2008-04-24 Thread Chris
I'm trying to get a built of Matplotlib built under Python.org Python 2.5.2, but get the following build error, which did not occur under Leopard's python: src/_image.cpp: In member function ‘Py::Object _image_module:: from_images (const Py::Tuple)’: src/_image.cpp:848: error: insn does not

Re: [Matplotlib-users] font always the same in PNG

2008-04-24 Thread Paul Smith
Michael Droettboom [EMAIL PROTECTED] writes: Paul Smith wrote: Hi Michael, I put in the rc line you suggested below into fonts_demo.py but didn't see it print any extra info (but did confirm in ipython that rcParams showed verbose.level had changed to annoying). It just quietly

Re: [Matplotlib-users] OSX build under universal python fails

2008-04-24 Thread Eric Firing
Chris, Based on recent emails, this looks like a problem attributed to the gcc version, not the python version. Suggested solutions are compile with the -Os flag or use gcc 4.2. Eric Chris wrote: I'm trying to get a built of Matplotlib built under Python.org Python 2.5.2, but get the

Re: [Matplotlib-users] OSX build under universal python fails

2008-04-24 Thread Chris
Chris [EMAIL PROTECTED] writes: Based on recent emails, this looks like a problem attributed to the gcc version, not the python version. Suggested solutions are compile with the -Os flag or use gcc 4.2. I think universal builds may have to wait for another day, when gcc 4.2 is

Re: [Matplotlib-users] find_best_location for axes ?

2008-04-24 Thread John Hunter
On Thu, Apr 24, 2008 at 4:11 PM, Antonino Miceli [EMAIL PROTECTED] wrote: Hi, I want to inset one axes within a larger one... as in http://matplotlib.sourceforge.net/screenshots/axes_demo.py and http://matplotlib.sourceforge.net/screenshots/axes_demo_small.png but I was wondering if

Re: [Matplotlib-users] How do you static link to freetype when building eggs?

2008-04-24 Thread John Hunter
On Thu, Apr 24, 2008 at 11:51 AM, Christopher Barker [EMAIL PROTECTED] wrote: I posted a note about this yesterday, with no replies, so I'll try again: Instead of all of us going through the pain of figuring out how to build and link static libs for MPL, and PIL, and GDAL, and ???, why

Re: [Matplotlib-users] Different between canvas.draw() and canvas.restore_region()??

2008-04-24 Thread John Hunter
On Thu, Apr 24, 2008 at 2:43 AM, G Jones [EMAIL PROTECTED] wrote: I'm confused, because I don't see any place where self.canvas.draw is called in the code1 version. Also, when I resize the figure, the background region changes, so the plot gets messed up as I have noticed before with this