Advertisement
Guest User

Untitled

a guest
Apr 4th, 2020
287
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.28 KB | None | 0 0
  1. import matplotlib.pyplot as plt
  2. import numpy as np
  3.  
  4. t = np.arange(-10.0, 10.0, 0.1)
  5. x = 2 * np.sin(t)**3
  6. y = 2 * np.cos(t)**3
  7.  
  8. fig, ax = plt.subplots()
  9. ax.plot(x, y)
  10.  
  11. ax.set(xlabel='x(t) = 2(sin(t))**3', ylabel='y(t) = 2cos(t)**3', title='Астроида')
  12. ax.grid()
  13. plt.show()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement