Re: [Matplotlib-users] clearing a figure

2007-01-10 Thread Mark Bakker
Belinda - The hold state is on by default when you use pylab. To clear a figure you use clf(). Here's a brief example: from pylab import * figure() # Not really needed, you could have typed plot right away, but here you can set some nice features like the size plot([1,2,3]) plot([2,1,2]) # Will

[Matplotlib-users] zoom in polar plots

2007-01-10 Thread Nils Wagner
Hi, How can I use zoom for polar plots ? I mean a circular cutout would be better than a rectangular cutout. Nils from scipy import * from pylab import show, polar def M(omega): s = 1j*omega return linalg.solve(s*identity(n)-A_0,A_1)*exp(-h_0*s) A_0 = array(([0,1.],[-32,-2])) A_1 =

Re: [Matplotlib-users] idle and ipython and axis

2007-01-10 Thread Mark Bakker
I have experienced the same problem with IDLE. It only works with -n, but then you lose the nice feature of 'starting over'. Does anybody know a fix so we can do both? Thanks, Mark BTW, when you use pylab in interactive mode, the axis() command should scale your figure interactively, also under

Re: [Matplotlib-users] idle and ipython and axis

2007-01-10 Thread John Hunter
belinda == belinda thom [EMAIL PROTECTED] writes: belinda I can create plots to my hearts content in both, but when belinda I ask to rescale the plots, e.g. axis([-.2,2.4,-2,2.4]), belinda NOTHING happens to the figure drawn via IDLE, whereas the belinda command works as

Re: [Matplotlib-users] idle and ipython and axis

2007-01-10 Thread John Hunter
belinda == belinda thom [EMAIL PROTECTED] writes: belinda Hi, belinda I've been playing w/both IDLE and IPython, using TkAgg in belinda both cases as the back end. Also, I've got the latest belinda matplotlib and ipython versions and am using MacPython's belinda 2.4.4 IDLE.

Re: [Matplotlib-users] idle and ipython and axis

2007-01-10 Thread belinda thom
Mark, BTW, when you use pylab in interactive mode, the axis() command should scale your figure interactively, also under IDLE. Have you tried that? Yes, I tried using axis in both IDLE and IPython. IPython's redrew the axis automatically whereas IDLE's did not. I am not sure, but I

Re: [Matplotlib-users] idle and ipython and axis

2007-01-10 Thread John Hunter
belinda == belinda thom [EMAIL PROTECTED] writes: belinda I am not sure, but I think this difference in behavior is belinda b/c IPython is a bit better about calling belinda draw_if_interactive after most pylab functions (see belinda Eric Firing's

Re: [Matplotlib-users] installing numpy, matplotlib, scipy from source on a Mac

2007-01-10 Thread belinda thom
I am posting this message to both numpy and matplotlib mailing lists because the thread relates to both. First, Robert Kern kindly provided step-by-step instructions for Macs (PPCs and Intels) regarding how to install FROM SOURCE the packages needed to allow Python to become a viable

Re: [Matplotlib-users] installing numpy, matplotlib, scipy from source on a Mac

2007-01-10 Thread Robert Kern
belinda thom wrote: I am posting this message to both numpy and matplotlib mailing lists because the thread relates to both. Actually, it's really only relevant to matplotlib. However, after installing wx and matplotlib, various problems result: 1) warnings about fonts 2) wx fails to

Re: [Matplotlib-users] installing numpy, matplotlib, scipy from source on a Mac

2007-01-10 Thread Robert Kern
John Hunter wrote: Robert == Robert Kern [EMAIL PROTECTED] writes: Robert Personally, I think the warnings are a bit overzealous and Robert should be silenced. It's not as if the user is explicitly Robert telling the font manager to load those specific Robert fonts. They

Re: [Matplotlib-users] installing numpy, matplotlib, scipy from source on a Mac

2007-01-10 Thread Robert Kern
belinda thom wrote: Robert, Try running with pythonw. Do you know how to fix this in IDLE (it must be using python as opposed to pythonw somehow). I'm afraid that I don't know enough about IDLE to help you. -- Robert Kern I have come to believe that the whole world is an enigma, a

Re: [Matplotlib-users] clearing a figure

2007-01-10 Thread Christopher Barker
Eric Firing wrote: This is the big difference between most pylab functions and the corresponding axes or figure methods that they wrap: the pylab functions automatically take care of redrawing the figure if you are in an interactive mode. Now I feel bad -- I think I encouraged Belinda to

Re: [Matplotlib-users] clearing a figure

2007-01-10 Thread John Hunter
Christopher == Christopher Barker [EMAIL PROTECTED] writes: Christopher However, it is the case that there is a lot of stuff Christopher in pylab that makes it easier to use MPL in Christopher interactive mode. I kind of think that's a shame. I Christopher don't think that there

Re: [Matplotlib-users] installing numpy, matplotlib, scipy from source on a Mac

2007-01-10 Thread Christopher Barker
Robert Kern wrote: Try running with pythonw. That's probably not it -- as of MacPython 2.4, pythonw ands python are the same. belinda thom wrote: And running w/pythonw does what it should :-). OK, now I'm confused: $ ls -l /Library/Frameworks/Python.framework/Versions/2.4/bin/python2.4

Re: [Matplotlib-users] clearing a figure

2007-01-10 Thread Christopher Barker
John Hunter wrote: It's currently implemented in pylab but could be moved up to the OO layer by doing something like class Axes: def plot(self, *args, **kwargs): ...plot something if rcParams['interactive']: self.figure.canvas.draw() or by providing some

Re: [Matplotlib-users] clearing a figure

2007-01-10 Thread Eric Firing
Christopher Barker wrote: Eric Firing wrote: This is the big difference between most pylab functions and the corresponding axes or figure methods that they wrap: the pylab functions automatically take care of redrawing the figure if you are in an interactive mode. Now I feel bad -- I

Re: [Matplotlib-users] installing numpy, matplotlib, scipy from source on a Mac

2007-01-10 Thread Robert Kern
belinda thom wrote: I went back and retried the plotting w/wx as a backend and discovered that wx FAILS with PYTHONW and PYTHON (appended). Okay, what version of wxPython did you install? What version of wxPython is actually imported (check wx.__version__)? (And we can leave off

Re: [Matplotlib-users] installing numpy, matplotlib, scipy from source on a Mac

2007-01-10 Thread Robert Kern
belinda thom wrote: Hi, On Jan 10, 2007, at 5:56 PM, Robert Kern wrote: belinda thom wrote: I went back and retried the plotting w/wx as a backend and discovered that wx FAILS with PYTHONW and PYTHON (appended). Okay, what version of wxPython did you install? What version of wxPython

Re: [Matplotlib-users] clearing a figure

2007-01-10 Thread Eric Firing
John Hunter wrote: Christopher == Christopher Barker [EMAIL PROTECTED] writes: Christopher However, it is the case that there is a lot of stuff Christopher in pylab that makes it easier to use MPL in Christopher interactive mode. I kind of think that's a shame. I Christopher

[Matplotlib-users] matplotlib-0.87.7 Build Failure

2007-01-10 Thread Rich Shepard
From 'python setup.py build': src/_ns_backend_gdk.c:17:25: pygtk/pygtk.h: No such file or directory However, ... [EMAIL PROTECTED] ~]$ locate pygtk.h /usr/local/pygtk-2.8.6/gtk/pygtk.h /usr/local/include/pygtk-2.0/pygtk/pygtk.h Do I need to add /usr/local/include/pygtk-2.0/ somewhere in