Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # arrange, linspace, pi, zeros, sin, cos
- import numpy
- # plot, show, legend, xlabel, ylabel, figure, axis
- import matplotlib.pyplot as plot
- # numpy.arrange = zakres od do krok
- # numpy.linspace = od do ilosc krokow
- x = numpy.arange(0, 10, .01)
- y1 = numpy.sin(2*x)
- y2 = numpy.cos(3*x)
- plot.figure(1)
- plot.plot(x, y1, 'k', label='sinus')
- plot.plot(x, y2, 'g', label='cosinus')
- plot.legend(loc='upper right')
- plot.xlabel('os x', fontsize=14)
- plot.ylabel('os y', fontsize=14)
- # plot.figure(2)
- plot.plot(y1, y2)
- plot.axis('equal')
- plot.show()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement