Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- x = arange(5)
- y = np.exp(5)
- plt.figure()
- plt.plot(x, y)
- z = np.sin(x)
- plt.figure()
- plt.plot(x, z)
- w = np.cos(x)
- plt.figure("""first figure""") # Here's the part I need
- plt.plot(x, w)
- import matplotlib.pyplot as plt
- import numpy as np
- x = np.arange(5)
- y = np.exp(x)
- fig1 = plt.figure()
- ax1 = fig1.add_subplot(111)
- ax1.plot(x, y)
- z = np.sin(x)
- fig2 = plt.figure()
- ax2 = fig2.add_subplot(111)
- ax2.plot(x, z)
- w = np.cos(x)
- ax1.plot(x, w) # can continue plotting on the first axis
- x = arange(5)
- y = np.exp(5)
- plt.figure(0)
- plt.plot(x, y)
- z = np.sin(x)
- plt.figure(1)
- plt.plot(x, z)
- w = np.cos(x)
- plt.figure(0) # Here's the part I need
- plt.plot(x, w)
- x = arange(5)
- y = np.exp(5)
- plt.figure(1)
- plt.plot(x, y)
- z = np.sin(x)
- plt.figure(2)
- plt.plot(x, z)
- w = np.cos(x)
- plt.figure(1) # Here's the part I need, but numbering starts at 1!
- plt.plot(x, w)
Add Comment
Please, Sign In to add comment