I had a similar issue and this thread mostly solved it, save for one
remaining bug.
If I also call a different module in my main program that does the plotting
in MPL, and then I modify that module, then when I try to run it again in
ipython it acts as if the module I imported has not been change
Try to put plt.draw() before plt.show().
My guess is that what show() does is to create figure windows, and in
most cases it does not redraw the figure (Tk backend is always an
exception). So, this may not be a bug.
But I hope some who knows well about the backends clarify this.
Regards,
-JJ
Gökhan SEVER wrote:
> I am playing with some other commands to achieve updating on the same
> figure, no luck yet.
>
> I guess that is what you actually been trying to see? Update the
> figure content without opening another one?
right.
Christopher Barker wrote:
> oops, no it doesn't -- what th
Christopher Barker wrote:
> Gökhan SEVER wrote:
>> You may add these two lines:
>>
>> fig = plt.figure()
>> fig.clear()
>
> I thought I'd tried that (at least I'd tries plt.clf() ), but indeed,
> that takes care of it. I'm a bit confused as to why that is necessary,
> but at least it's working f
I am playing with some other commands to achieve updating on the same
figure, no luck yet.
I guess that is what you actually been trying to see? Update the
figure content without opening another one?
Gökhan
On Wed, May 6, 2009 at 6:58 PM, Christopher Barker
wrote:
> Gökhan SEVER wrote:
>> You
Gökhan SEVER wrote:
> You may add these two lines:
>
> fig = plt.figure()
> fig.clear()
I thought I'd tried that (at least I'd tries plt.clf() ), but indeed,
that takes care of it. I'm a bit confused as to why that is necessary,
but at least it's working for me.
thanks,
-Chris
> It should g
Hi
You may add these two lines:
fig = plt.figure()
fig.clear()
It should give what you want to see.
Gökhan
On Wed, May 6, 2009 at 6:09 PM, Christopher Barker
wrote:
> Hi all
>
> I'm sure this is documented somewhere, but I can't find it.
>
> I'm finally getting around to learning ipython, w
Eric Firing wrote:
>> What am I missing?
>
> Try "ipython -pylab".
oops, sorry -- I'm already doing that. If I don't do that, then the
show() command blocks ipython -- that's not happening, I'm just not
getting new plots when it's called again.
thanks,
-Chris
> Eric
>
>>
>> example script:
Christopher Barker wrote:
> Hi all
>
> I'm sure this is documented somewhere, but I can't find it.
>
> I'm finally getting around to learning ipython, which is pathetic as it
> sure seems like a great tool.
>
> Anyway, I want to be able to have a simple script that does some
> plotting with MP
Hi all
I'm sure this is documented somewhere, but I can't find it.
I'm finally getting around to learning ipython, which is pathetic as it
sure seems like a great tool.
Anyway, I want to be able to have a simple script that does some
plotting with MPL, and run it with python's "run". Then chan
10 matches
Mail list logo