Advertisement
Guest User

Untitled

a guest
Apr 9th, 2020
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.51 KB | None | 0 0
  1. import numpy as np
  2. import matplotlib.pyplot as plt
  3.  
  4. # inicjalizacja
  5. fig = plt.figure()
  6. # dodanie "podwykresu" (zobacz: http://matplotlib.org/api/pyplot_api.html#matplotlib.pyplot.subplot )
  7. ax = fig.add_subplot(111)
  8.  
  9.  
  10. ax.set_ylabel('oś y')  # opis osi y
  11. ax.set_title('Parabola')  # tytuł wykresu
  12.  
  13. t = np.arange(10,100,2)
  14. d = np.arange(-1,2,0.01)
  15. s = (1-4)*(t**2) + (7-5)*t + (8-6)
  16. z = (np.e**x)/((np.e**x)+1)
  17. line = ax.plot(t, s, color='red', lw=2)
  18. line2= ax.plot(d,z, color ='blue',lw=2)
  19.  
  20. plt.show()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement