Skip to content Skip to sidebar Skip to footer

Matplotlib Animated Plot Wont Update Labels On Axis Using Blit

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 the whole

Solution 1:

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.

Post a Comment for "Matplotlib Animated Plot Wont Update Labels On Axis Using Blit"