Matplotlib animate fill_between shape

后端 未结 5 2069
别那么骄傲
别那么骄傲 2021-01-04 02:48

I am trying to animate a fill_between shape inside matplotlib and I don\'t know how to update the data of the PolyCollection. Take this simple example: I have two lines and

5条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-04 02:58

    If you don't want to use anitmation, or to remove everything from your figure to update only filling, you could use this way :

    call fill_lines.remove() and then call again axes_dummy.fill_between() to draw new ones. It worked in my case.

提交回复
热议问题