matplotlib animated plot wont update labels on axis using blit

后端 未结 1 484
醉梦人生
醉梦人生 2020-12-31 10:57

I am plotting data in a plot using wxPython where the data limits on the y- axis are changing with the data. I would like to change the axis dynamically without redrawing th

相关标签:
1条回答
  • 2020-12-31 11:03

    It looks like the labels are drawn but the blit command doesn't copy them over to the canvas because the bounding box only includes the inner part of the axes.

    For me changing update_line.background = canvas.copy_from_bbox(ax.bbox) to update_line.background = canvas.copy_from_bbox(ax.get_figure().bbox) and canvas.blit(ax.bbox) to canvas.blit(ax.clipbox) made it work.

    0 讨论(0)
提交回复
热议问题