I want to update multiple figures using pylab animation. I initialize a new figure for each channel to display and I set interactive mode to off using:
pyplot.ion()
pyplot.show()
In the class containing the figure there's a ring buffer and a method to update the data:
def append_data(self, data):
update buffers with data
...
...
self.lineb.set_data(self.tbuf, self.bbuf)
self.ax1.set_xlim( [min(self.tbuf), max(self.tbuf)] )
self.ax1.set_ylim( [min(self.bbuf), max(self.bbuf)] )
...
...
self.fig.show()
pyplot.draw()
The problem: with more than one figure, only the last one updates correctly. The other ones do not refresh. I know the data is correctly added to the each figure's buffer, so the problem is not there.