Linked Questions

Popular Questions

Delete specific elements from matplotlib plot

Asked by At

I'm initializing a figure and axis as: fig, ax = plt.subplots(1, figsize=(10,6))

I then plot some charts by passing ax.

Because I plan to show the results on a website and the charts take a while to plot, I'd like to be able to plot an annotation and a marker (according to user input), clear it, and replot without clearing the entire figure or axis.

Is there an easy way to do this?

Thank you

Related Questions