Re: [Matplotlib-users] clearing a figure

2007-01-11 Thread John Hunter
> "Christopher" == Christopher Barker <[EMAIL PROTECTED]> writes: Christopher> F1 = OOlab.Figure() F2 = OOlab.Figure() We have this: fig1 = pylab.figure() fig2 = pylab.figure() ax1 = fig.add_subplot(111) line, = ax1.plot([1,2,3]) line.set_color('green') ax1.set_title('hi mo

Re: [Matplotlib-users] clearing a figure

2007-01-11 Thread belinda thom
Hi, > With the exception of ipython -pylab, noone is forcing you to import > *. And on the subject, Fernando, perhaps we should support a pylab > mode in ipython which doesn't dump the pylab namespace (or maybe just > dumps the required figure, show, close, nx), but does the interactive > backend

Re: [Matplotlib-users] [Pythonmac-SIG] Compiling Scipy/available binaries for Universal Python 2.4?

2007-01-11 Thread belinda thom
FWIW On Jan 11, 2007, at 5:29 PM, Bob Ippolito wrote: > On 1/11/07, Nicholas Riley <[EMAIL PROTECTED]> wrote: >> On Thu, Jan 11, 2007 at 02:21:19PM -0800, Christopher Barker wrote: >>> Is it that hard to make a binary to put up (OK, two - one for >>> PPC, one >>> for Intel), once you've gotten

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

2007-01-11 Thread belinda thom
> PPS: Belinda, now that you've done all this work, I do hope you can > go the extra mile and figure out how to make a binary package of it > all for others! I certainly would like to to do this, but its gonna have to wait until after TheCurrentCrisis alleviates. Hopefully before Feb (in the

Re: [Matplotlib-users] clearing a figure

2007-01-11 Thread belinda thom
so use pylab.gca() ? On Jan 11, 2007, at 3:31 PM, Christopher Barker wrote: > Jeff Whitaker wrote: > >> Chris: In the pylab interface, figure() returns a figure instance >> and >> plot(x,y) returns a list of Line2d instances. > > yes, but it's the axis instance that you are most likely to need

Re: [Matplotlib-users] clearing a figure

2007-01-11 Thread Christopher Barker
Jeff Whitaker wrote: > Chris: Never noticed this before, but apparently the parent axes > instance is attached to the Line2d instance: > > >>> from pylab import * > >>> l = plot([1,2,3]) > >>> l[0].axes > cool! That could be handy. thanks, -Chris -- Christopher Barker, Ph.D. Oceanogra

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

2007-01-11 Thread Robert Kern
Christopher Barker wrote: > The MPL build system uses a nifty utility that comes with wx called > wx-config to find the wx libs. However, Apple delivered an old version > of wxPython with it's Python2.3. By default, the MPL build find the old > wx-config, and you end up building the wxAgg back-

Re: [Matplotlib-users] clearing a figure

2007-01-11 Thread Jeff Whitaker
Christopher Barker wrote: > Jeff Whitaker wrote: > >> Chris: In the pylab interface, figure() returns a figure instance >> and plot(x,y) returns a list of Line2d instances. > > yes, but it's the axis instance that you are most likely to need! > > - Chris > > Chris: Never noticed this before, but

Re: [Matplotlib-users] clearing a figure

2007-01-11 Thread Christopher Barker
Jeff Whitaker wrote: > Chris: In the pylab interface, figure() returns a figure instance and > plot(x,y) returns a list of Line2d instances. yes, but it's the axis instance that you are most likely to need! - Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA

Re: [Matplotlib-users] clearing a figure

2007-01-11 Thread Christopher Barker
Eric Firing wrote: > I think this may be a slippery slope. The problem is that for it to > work well, there has to be a clear distinction between methods that are > endpoints, requiring a redraw, and methods that will be used by other > methods. For example, errorbar makes multiple calls to

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

2007-01-11 Thread Christopher Barker
belinda thom wrote: > reports no differences. So, I went back and retried the plotting w/wx as > a backend and discovered that wx FAILS with PYTHONW and PYTHON (appended). That's what I expected. > If you saw how many notes I've collected on the different installs I've > tried you'd laugh (exc

Re: [Matplotlib-users] clearing a figure

2007-01-11 Thread Jeff Whitaker
Christopher Barker wrote: > Eric Firing wrote: > >> Even without the automatic-redraw difference, the OO interface requires >> more typing, and more mental record-keeping, than the pylab interface. >> > > Yes, but I don't think that's inherent in an OO interface, it's just > that the quic

Re: [Matplotlib-users] clearing a figure

2007-01-11 Thread Christopher Barker
Eric Firing wrote: > Even without the automatic-redraw difference, the OO interface requires > more typing, and more mental record-keeping, than the pylab interface. Yes, but I don't think that's inherent in an OO interface, it's just that the quickie utilities are missing from the current OO in

Re: [Matplotlib-users] matplotlib-0.87.7 Build Failure

2007-01-11 Thread Rich Shepard
On Thu, 11 Jan 2007, John Hunter wrote: > Hmm, what version of wx are you using? wxPython-2.6.3.2-i486-1asz (on Slackware) Rich -- Richard B. Shepard, Ph.D. |The Environmental Permitting Applied Ecosystem Services, Inc.| Accelerator(TM)

Re: [Matplotlib-users] matplotlib-0.87.7 Build Failure

2007-01-11 Thread Rich Shepard
On Thu, 11 Jan 2007, John Hunter wrote: > Can you > > import matplotlib.backends._wxagg > > successfully? Yes. > matplotlib.backends.backend_wxagg still supports using the older, > slower, python transfer. If you edit backend_wxagg.py and edit the > bottom of the file replacing the block > >

Re: [Matplotlib-users] matplotlib-0.87.7 Build Failure

2007-01-11 Thread Rich Shepard
On Thu, 11 Jan 2007, John Hunter wrote: > I didn't see the attachment. John, Mea culpa! I forgot to stick them on. > > python myscript.py --verbose-debug -dAgg >& runagg.out > > python myscript.py --verbose-debug -dPS >& runps.out > > python myscript.py --verbose-debug -dGTK >& rungtk.out >

Re: [Matplotlib-users] matplotlib-0.87.7 Build Failure

2007-01-11 Thread John Hunter
> "Rich" == Rich Shepard <[EMAIL PROTECTED]> writes: Rich>simple_plot.py and the output (matplot.log) are Rich> attached. It is when the show() command is run that the Rich> problem appears. I didn't see the attachment. Rich> How do I specify the backend for a run of th

Re: [Matplotlib-users] matplotlib-0.87.7 Build Failure

2007-01-11 Thread Rich Shepard
On Thu, 11 Jan 2007, John Hunter wrote: > If you recompiled cleanly (ie removed the build subdir) with VERBOSE=True > as instructed, you should be getting tons and tons of output whenever you > run a script (eg can you run simple_plot.py?). John, I was looking for verbose output during the bu

Re: [Matplotlib-users] matplotlib-0.87.7 Build Failure

2007-01-11 Thread John Hunter
> "Rich" == Rich Shepard <[EMAIL PROTECTED]> writes: >> If that shed additional light, again flush the build and >> install dirs, and try setting VERBOSE=True in setup.py before >> doing a clean install. The VERBOSE setting will generate lots >> of extra output and may help ind

Re: [Matplotlib-users] matplotlib-0.87.7 Build Failure

2007-01-11 Thread Rich Shepard
On Thu, 11 Jan 2007, John Hunter wrote: > # How to diagnose where a segfault is occurring > Try importing these packages individually > > import matplotlib._image > import matplotlib._transforms > import matplotlib.backends._ns_backend_agg # for numpy > import matplotlib.backends._tkagg > im

[Matplotlib-users] Plotting polygons in 3D

2007-01-11 Thread David A Carr
Hello all, I am a new matplotlib user and am trying to plot simple polygons in 3D. Such as cubes and tetrahedra. As a start I began exploring the axes3D example listed on the scipy page. There are two errors that occur one is a missed tab on line 364 - 365 before the if statement. Removing

Re: [Matplotlib-users] matplotlib-0.87.7 Build Failure

2007-01-11 Thread Rich Shepard
On Thu, 11 Jan 2007, John Hunter wrote: > If that shed additional light, again flush the build and install dirs, and > try setting VERBOSE=True in setup.py before doing a clean install. The > VERBOSE setting will generate lots of extra output and may help indicate > where the segfault is occurring

Re: [Matplotlib-users] matplotlib-0.87.7 Build Failure

2007-01-11 Thread Rich Shepard
On Thu, 11 Jan 2007, John Hunter wrote: > # How to diagnose where a segfault is occurring > Try importing these packages individually [EMAIL PROTECTED] ~]$ ipython In [1]: import matplotlib._image In [2]: import matplotlib._transforms In [3]: import matplotlib.backends._ns_backend_agg In [4]: i

Re: [Matplotlib-users] matplotlib-0.87.7 Build Failure

2007-01-11 Thread Rich Shepard
On Thu, 11 Jan 2007, Simson Garfinkel wrote: > Perhaps you have a second installation that you are not aware of. Good thought, Simon. I have the new /usr/local/matplotlib-0.87.7, /usr/share/matplotlib (with images and fonts), and another directory with docs and examples. That's all. There are

Re: [Matplotlib-users] matplotlib-0.87.7 Build Failure

2007-01-11 Thread John Hunter
> "Rich" == Rich Shepard <[EMAIL PROTECTED]> writes: Rich>Is matplotlib-0.87.7 dependent on specific versions of Rich> gcc or glibc? Not that I know of... I'm pasting in our "SEGFAULTS" instructions below, which are located in the svn repository # How to diagnose where a segfaul

Re: [Matplotlib-users] matplotlib-0.87.7 Build Failure

2007-01-11 Thread Simson Garfinkel
Perhaps you have a second installation that you are not aware of. On Jan 11, 2007, at 12:18 PM, Rich Shepard wrote: > On Thu, 11 Jan 2007, John Hunter wrote: > >> sudo rm -rf your build dir and site-packages/matplotlib and >> rebuild/reinstall. > > John, > >Rats! That did not change the resu

Re: [Matplotlib-users] matplotlib-0.87.7 Build Failure

2007-01-11 Thread Rich Shepard
On Thu, 11 Jan 2007, John Hunter wrote: > sudo rm -rf your build dir and site-packages/matplotlib and > rebuild/reinstall. John, Rats! That did not change the result. Is matplotlib-0.87.7 dependent on specific versions of gcc or glibc? Rich -- Richard B. Shepard, Ph.D. |

Re: [Matplotlib-users] AttributeError: Subplot instance has no attribute 'xlabel'

2007-01-11 Thread John Hunter
> "Nils" == Nils Wagner <[EMAIL PROTECTED]> writes: Nils> Is this a bug ? ax1.xlabel(r'Frequency $f$ (Hz)') Nils> AttributeError: Subplot instance has no attribute 'xlabel' Yes, but it is a bug in your code (wink). See help(ax1). The method is ax1.set_xlabel. KDJ

[Matplotlib-users] AttributeError: Subplot instance has no attribute 'xlabel'

2007-01-11 Thread Nils Wagner
Is this a bug ? ax1.xlabel(r'Frequency $f$ (Hz)') AttributeError: Subplot instance has no attribute 'xlabel' >>> ax1 Nils - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and y

Re: [Matplotlib-users] matplotlib-0.87.7 Build Failure

2007-01-11 Thread John Hunter
> "Rich" == Rich Shepard <[EMAIL PROTECTED]> writes: Rich> In [3]: show() Segmentation fault sudo rm -rf your build dir and site-packages/matplotlib and rebuild/reinstall. JDH - Take Surveys. Earn Cash. Influence th

Re: [Matplotlib-users] matplotlib-0.87.7 Build Failure

2007-01-11 Thread Rich Shepard
On Thu, 11 Jan 2007, John Hunter wrote: > You may also want to append /usr/local/pkgconfig/ to that path... John, pkgconfig is only in /usr/local/lib. > Glad it's working for you. Well, let's not be too hasty. I replaced ~/.matplotlib/matplotlibrc with the newer copy from today's ins

Re: [Matplotlib-users] matplotlib-0.87.7 Build Failure

2007-01-11 Thread John Hunter
> "Rich" == Rich Shepard <[EMAIL PROTECTED]> writes: Rich>Regardless, I added 'export Rich> PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/' to .bash_profile Rich> and sourced that file. Did the same for root's Rich> .bash_profile. Now it's building. You may also want to append

Re: [Matplotlib-users] matplotlib-0.87.7 Build Failure

2007-01-11 Thread Rich Shepard
On Thu, 11 Jan 2007, John Hunter wrote: > In your build environment, see if these directories show up with > > > pkg-config --cflags-only-I pygtk-2.0 John, Nobody's home. > That is what mpl uses to find your pygtk headers. If not, set your > PKG_CONFIG_PATH environment variable accordingly

Re: [Matplotlib-users] matplotlib-0.87.7 Build Failure

2007-01-11 Thread John Hunter
> "Rich" == Rich Shepard <[EMAIL PROTECTED]> writes: >> From 'python setup.py build': Rich> src/_ns_backend_gdk.c:17:25: pygtk/pygtk.h: No such file or Rich> directory Rich>However, ... Rich> [EMAIL PROTECTED] ~]$ locate pygtk.h Rich> /usr/local/pygtk-2.8.6/gtk/py