Open bybyte opened 5 years ago
Using the matplotlib widget works, and it seems only natural to use a proper widget to display and update your plots. However, I'd still like to know if there is a solution that doesn't involve using the matplotlib widget.
Same question here. I also would like to reduce the flickering, for example in this case:
from matplotlib import pyplot as plt
from IPython.display import clear_output
import numpy as np
for i in range(10):
clear_output(wait=True)
y = np.random.random([10,1])
plt.plot(y)
plt.show()
Hi, import matplot.pyplot as plt
plt.draw_idle()
with this we will avoid flickering. use above draw_idle i think it will be ok or else R&D is the best way.
I re-use the same figure and axis to plot some data in a succession. In order to display a single figure on the notebook, I need to clear the output. However, this seems to be causing some flickering.
It seems that objects like ipywidgets.interact do not suffer from such flickering.
How can I remove the flickering (without having to resort to ipywidgets.interact)?