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 change the
script and run again, and have the plot updated -- this does not seem to
happen. It appears to work if I close th figure by clicking on the
Window close button, then "run", but that's kind of a pain.
What am I missing?
example script:
import matplotlib.pyplot as plt
import numpy as np
x = (1,2,3,4,5,6,7,8)
y = (6,2,6,4,6,4,7,5)
plt.plot(x, y)
plt.grid('on')
plt.show()
the I want to be able to do:
In [32]: run test_ipython.py
get a plot, then change some of the numbers in the script and:
In [33]: run test_ipython.py
then get an updated plot.
It's not doing that now.
what am I missing?
thanks,
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
[email protected]
------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
Matplotlib-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-users