Re: [Matplotlib-users] animated plot with autoscaling

2008-04-24 Thread G Jones
Hello, Thank you for the suggestion. However, I am refering to the canvas.restore_region, draw_artist, blit, gui_repaint sort of animation. Glenn On Thu, Apr 24, 2008 at 11:13 PM, Matthias Michler <[EMAIL PROTECTED]> wrote: > Hello Glenn > > Do you refer to a special example? > Maybe the followi

Re: [Matplotlib-users] animated plot with autoscaling

2008-04-24 Thread Matthias Michler
Hello Glenn Do you refer to a special example? Maybe the following helps you. -- from pylab import * ion() ax = subplot(111) # ... some plotting ax.relim() # reset intern limits of the current axes ax

[Matplotlib-users] animated plot with autoscaling

2008-04-24 Thread G Jones
I would like to extend the animated plot paradigm to an application where I need to autoscale the vertical axis each time the plot is updated. Any suggestions as to how to do so? I assume I need to tell the axis to autoscale, then draw the axis' artist. However, I am not sure how to do these things

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 t

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 9:24 PM, Christopher Fonnesbeck <[EMAIL PROTECTED]> wrote: > > I read your post and perhaps I am missing the obvious, but my basic > > question is: apple provides libpng and freetype with xcode which ships > > with their computers (an optional install from their cd) and the

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

2008-04-24 Thread Christopher Fonnesbeck
On 25/04/2008, at 2:03 PM, John Hunter wrote: > 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

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 ???, wh

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 wond

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

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

2008-04-24 Thread Chris
Eric Firing <[EMAIL PROTECTED]> writes: > > 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. > Hmm. The problem with using gcc 4.2 is that numpy does not

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 f

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

[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 sat

[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

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 everywher

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

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

2008-04-24 Thread Glen W. Mabey
On Thu, Apr 24, 2008 at 08:59:32AM -0500, John Hunter wrote: > On Wed, Apr 23, 2008 at 1:49 PM, Glen W. Mabey <[EMAIL PROTECTED]> 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 ): >

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] 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 ha

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

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

2008-04-24 Thread John Hunter
On Wed, Apr 23, 2008 at 1:49 PM, Glen W. Mabey <[EMAIL PROTECTED]> 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

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 p

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 p

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 t

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 fonts

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 'ipyth

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] win32 build error in _path.cpp: 'numeric_limits' : is not a member of 'std'

2008-04-24 Thread Martin Spacek
It worked! I had to make a few changes, and there's lots of warnings, but it's now compiling. I've attached a patch. In backend_agg.cpp, I had to replace an 'and' with '&&', and I had to replace a few 'round()' calls with your 'my_round()'. I don't think my_round is directly being included in b

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 par

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'