Created
August 29, 2018 12:21
-
-
Save bhishanpdl/e4a883478e0650878890dfbdb56cfef0 to your computer and use it in GitHub Desktop.
[clear plot] #plot #matplotlib
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
t = np.linspace(0, 5*np.pi, 501) # Define parameter for parametric plot. | |
plt.plot(t, np.sin(t)**2) # Generate plot. | |
plt.plot(t, np.sin(t)**3) # Create new plot on same axes. | |
ax = plt.gca() # Gain control of axes. | |
ax.hold(False) # Turn hold off. | |
plt.plot(t, np.sin(t)**4) # Create new plot; old data erased. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment