Well, as someone pointed out that we are dealing with a collection here, so we will have to delete and redraw
for this axis object axes_dummy = f_dummy.add_subplot (111);
so somewhere in update_data (): you will ..
delete all collections associated with it
for coll in (axes_dummy.collections): axes_dummy.collections.remove(coll)
draw a new "fill_between" Polycollection
axes_dummy.fill_between(x,y-sigma,y+sigma, facecolor='yellow', alpha=0.5)
A similar trick is necessary for overlaying an unfilled contour graph on top of a filled one, since an unfilled contour graph is also an assembly (from the lines that I assume?)
meyerson
source share