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
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.