matplotlib clear plot 1

matplotlib clear plot

import matplotlib.pyplot as plt

plt.clf()

Here is what the above code is Doing:
1. plt.clf() clears the current figure.
2. plt.plot() plots the x and y axis values.
3. plt.show() displays the plot.

Similar Posts