Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import numpy as np
- f, axs = plt.subplots(1,2,figsize=(8,3))
- x = np.array([])
- y = np.array([])
- for r in range(2):
- x = np.append(x, np.array([-r,2*r,-r]))
- y = np.append(y, np.array([2*r,-r,-r]))
- axs[0].plot(x,y)
- axs[0].scatter(x,y)
- plt.xlim(-1,2)
- plt.ylim(-1,2)
- print(list(zip(x,y)))
- x = np.array([])
- y = np.array([])
- for r in range(2):
- x = np.append(x, np.array([-r,r,-r]))
- y = np.append(y, np.array([r,-r,-r]))
- axs[1].plot(x,y)
- axs[1].scatter(x,y)
- plt.xlim(-1,2)
- plt.ylim(-1,2)
- print(list(zip(x,y)))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement