Re: [Matplotlib-users] Matplotlib conflicts with IDLE

2010-02-07 Thread Pierre Raybaut
Pierre Raybaut a écrit : 2010/2/6 Gael Varoquaux gael.varoqu...@normalesup.org: On Sat, Feb 06, 2010 at 11:27:50AM +0100, Pierre Raybaut wrote: When you start having a somewhat complex set of functions that call each other, or when you are getting failures with somebody else's code, this

Re: [Matplotlib-users] Matplotlib conflicts with IDLE

2010-02-07 Thread Gael Varoquaux
On Sun, Feb 07, 2010 at 09:59:04AM +0100, Pierre Raybaut wrote: Two screenshots to prove it :-) Running an example script including pdb.set_trace() in the external console: http://spyderlib.googlegroups.com/web/pdb_test.png Executing the same script from a Python interpreter within the

Re: [Matplotlib-users] Matplotlib conflicts with IDLE

2010-02-07 Thread Pierre Raybaut
Gael Varoquaux a écrit : On Sun, Feb 07, 2010 at 09:59:04AM +0100, Pierre Raybaut wrote: Two screenshots to prove it :-) Running an example script including pdb.set_trace() in the external console: http://spyderlib.googlegroups.com/web/pdb_test.png Executing the same script from a

Re: [Matplotlib-users] Matplotlib conflicts with IDLE

2010-02-07 Thread David MacQuigg
Thanks to all who have replied. {Ipython, Vpython, Spyder, WxPython, Eclipse} x {Windows XP, Windows 7, Mac OSX, Linux} - looks like we have many {IDE, platform} combinations to test, and no consensus on any one choice. Student needs are different than large project developers. I need an IDE

Re: [Matplotlib-users] Difference Between Scatter and Plot? (Zig-Zag)--Solution

2010-02-07 Thread Wayne Watson
(I see I forgot to post this solution to the list. I really have quickly developed a dislike for having to go to extra lengths to make sure this happens. Perhaps one of my difficulties is that some people respond directly to me, and my mail filter shuttles the message to my matplotlib folder

[Matplotlib-users] quiver + dates

2010-02-07 Thread Filipe Pires Alvarenga Fernandes
Hello list, I'm trying to create a stick-plot figure using the quiver function from matplotlib. However, I'm failing miserably to plot dates in the x-axis. Has anyone done this before? Also, is there an effort to create a stickplot function? Thanks, Filipe

Re: [Matplotlib-users] Uninstalling MatPlotLib (win7)? {Site-Packages?] -- Solved

2010-02-07 Thread Wayne Watson
As it turns out, this was easy to solve. What drove me to this point is that the distributor of the software I use mentioned that numpy had to be installed before MPL. I had only installed MPL when I ran into a program that failed. I thought it might be because I hadn't installed numpy first,

Re: [Matplotlib-users] Difference Between Scatter and Plot? (Zig-Zag)--Solution

2010-02-07 Thread Alan G Isaac
Wayne Watson wrote: The cumsum (summation) buffaloes me. That is just to create some artificial data, to illustrate. If you have the coordinates in a 2 by N array named `locs`, just use the last 2 lines. If you already have the coordinates separated into arrays x and y, just use the last

[Matplotlib-users] How to close a plot?

2010-02-07 Thread zxc
Hi there! I need to know how to close a figure/chart in matplot. Does anyone know how it works and could you please explain on the example below? The problem is: close(1) doesn't close the figure 1 and when the 2nd figure will be plot the program hangs. I tried with draw() but the figure

Re: [Matplotlib-users] quiver + dates

2010-02-07 Thread Eric Firing
Filipe Pires Alvarenga Fernandes wrote: Hello list, I'm trying to create a stick-plot figure using the quiver function from matplotlib. However, I'm failing miserably to plot dates in the x-axis. Has anyone done this before? Also, is there an effort to create a stickplot function? I

Re: [Matplotlib-users] How to close a plot?

2010-02-07 Thread Jeff Whitaker
zxc wrote: Hi there! I need to know how to close a figure/chart in matplot. Does anyone know how it works and could you please explain on the example below? The problem is: close(1) doesn't close the figure 1 and when the 2nd figure will be plot the program hangs. I tried with draw()

[Matplotlib-users] Using bounds on plot axises. Not clear how this works?

2010-02-07 Thread Wayne Watson
The segment below is supposed to plot two columns of (x,y) data and do it in an area 640x480. Apparently, I'm missing how to use v to get this done. It dies at col.axis(v) with list object has no attribute 'axis'. From looking at some MPL examples, it's not clear to me how one uses axis here.

Re: [Matplotlib-users] How to close a plot?

2010-02-07 Thread Wayne Watson
Thanks. It seems most example of matplotlib end with show(). In fact, all may end that way, at least the short ones. On 2/7/2010 1:50 PM, Jeff Whitaker wrote: I need to know how to close a figure/chart in matplot. -- My life in two words. Interrupted Projects. -- WTW (quote originator)

Re: [Matplotlib-users] Using bounds on plot axises. Not clear how this works?

2010-02-07 Thread Jae-Joon Lee
try ax1.axis(v) -JJ On Sun, Feb 7, 2010 at 5:16 PM, Wayne Watson sierra_mtnv...@sbcglobal.net wrote: The segment below is supposed to plot two columns of (x,y) data and do it in an area 640x480. Apparently, I'm missing how to use v to get this done. It dies at col.axis(v) with list object

Re: [Matplotlib-users] Using bounds on plot axises. Not clear how this works?

2010-02-07 Thread Wayne Watson
Yes, that did it. Thanks. Some of that code I copied from an example, the ax1 part. I guess it's related to subplot. The 1 on ax doesn't make much sense to me. Maybe there was an ax2 in the original, so there were two subplots. So it looks like to manipulate the subplot, one uses ax1 with

Re: [Matplotlib-users] How to close a plot?

2010-02-07 Thread Wayne Watson
Thanks. It seems most example of matplotlib end with show(). In fact, all may end that way, at least the short ones. On 2/7/2010 1:50 PM, Jeff Whitaker wrote: I need to know how to close a figure/chart in matplolib. -- My life in two words. Interrupted Projects. -- WTW (quote originator)

Re: [Matplotlib-users] How to close a plot?

2010-02-07 Thread Wayne Watson
Well, that didn't quite work. I tried ... fig=figure() ... fig.close() show() and show() fig.close() In the first case, I got the error msg: On 2/7/2010 7:15 PM, Wayne Watson wrote: Figure has no attribute close Thanks. It seems most example of matplotlib end with show(). In fact, all may

Re: [Matplotlib-users] How to close a plot?

2010-02-07 Thread Wayne Watson
In the second case, after x, nothing really happened. The program resecuted the def it was in. On 2/7/2010 7:19 PM, Wayne Watson wrote: Well, that didn't quite work. I tried ... fig=figure() ... fig.close() show() and show() fig.close() In the first case, I got the error msg: On

Re: [Matplotlib-users] How to close a plot?

2010-02-07 Thread Philipp Bender
I'm pretty sure your problem is not generally related to matplotlib, all the examples you mentioned and the one you sent me by e-mail worked for me. Maybe you try a different version or a different operating system for your scripts.