plot_test.py 248 B

12345678910111213141516171819
  1. import matplotlib.pyplot as plt
  2. import matplotlib.animation as animation
  3. fig = plt.figure()
  4. ax = fig.add_subplot(1, 1, 1)
  5. """
  6. x = []
  7. y = []
  8. for i in range(10):
  9. x.append(i)
  10. y.append(i**2)
  11. plt.plot(x, y)
  12. plt.show()
  13. """