Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import matplotlib.pyplot as plt
- X = [x * 0.5 for x in range(0, 21)]
- Y = [x * x for x in X]
- plt.figure(figsize=(10, 8))
- plt.title('Кусок параболы')
- plt.grid(True)
- plt.xticks(range(11))
- plt.yticks(range(0, 101, 10))
- plt.plot(X, Y, marker='o', color='y', linestyle=':')
- plt.show()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement