On Tuesday 04 March 2008 10:44:13 pm David Fox wrote: > I'm trying to use the pylab interface of matplotlib interactively. I'd > like to enter some commands interactively to generate some data, plot a > graph based on the data, inspect the graph, enter more interactive > python, plot another graph, and so on. Instead, what happens is either > > (a) If I start with matplotlib set to interactive, control returns to > the Idle shell after the graph appears, but my graph window isn't > interactive (and most importantly, the window doesn't even refresh > properly, so if it is initially covered by the Idle window or another > window, that part of the graph isn't visible even when I put the graph > window in the foreground, or
Are you starting idle with the -n flag? It is required for interactive plotting with idle. Please see the users guide, which explains how to get up and running in interactive mode quickly. > (b) if I don't start with matplotlib in interactive mode, then to see > the graph I need to type show(). Then the graph is interactive and > refreshing works right, but the cursor doesn't return to the Idle shell, > unless I kill the graph window. At that point, any subsequent calls to > show() behave as in case (a). > > My questions are: > > 1. Is this the expected behavior? [given the details on my setup and > procedure below] > 2. Is there a way to get the type of interactivity I described in the > first paragraph of my email, other than using ipython (which I don't > particularly like because of the DOS window display, and the lack of > command completion and function argument hints which I depend on when > using GUI python shells like pythonwin or PyCrust)? ipython can give you command completion and function hints. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users