Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import numpy as np
- import matplotlib.pyplot as plt
- # inicjalizacja
- fig = plt.figure()
- # dodanie "podwykresu" (zobacz: http://matplotlib.org/api/pyplot_api.html#matplotlib.pyplot.subplot )
- ax = fig.add_subplot(111)
- ax.set_ylabel('oś y') # opis osi y
- ax.set_title('Parabola') # tytuł wykresu
- t = np.arange(10,100,2)
- d = np.arange(-1,2,0.01)
- s = (1-4)*(t**2) + (7-5)*t + (8-6)
- z = (np.e**x)/((np.e**x)+1)
- line = ax.plot(t, s, color='red', lw=2)
- line2= ax.plot(d,z, color ='blue',lw=2)
- plt.show()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement