Re: [Matplotlib-users] Interactive Replotting

2008-03-05 Thread Ryan May
Ryan May wrote: > Hi, > > I'm trying to get matplotlib to replot a pcolor image as data in a file > is updated. What's the proper way to do this? The best approach I > could come up with is as follows: Ok, I hadn't noticed the dynamic_image_gtkagg.py example before. I'm pretty sure this wil

[Matplotlib-users] Interactive Replotting

2008-03-05 Thread Ryan May
Hi, I'm trying to get matplotlib to replot a pcolor image as data in a file is updated. What's the proper way to do this? The best approach I could come up with is as follows: import threading, time import numpy as N import matplotlib.pyplot as P def update_plot(*args): ax = args[0]