I’m using matplotlibs basemap to plot some wind barbs on top of a pcolor over multiple days using a loop. I can easily change the pcolor by using set_data() but now I’m not sure how to replace the barbs.
Is there a way to just remove the barbs without clearing the entire figure?
When you create the barbs object save the reference it returns and use it’s
removefunction when you are done with it. Thedrawforces the canvas to re-draw with out the barbs. Assume thatmis thebasemapobject.