1plt.plot(x, np.sin(x), '-g', label='sin(x)')
2plt.plot(x, np.cos(x), ':b', label='cos(x)')
3plt.axis('equal')
4
5plt.legend();
6
1ax = plt.axes()
2ax.plot(x, np.sin(x))
3ax.set(xlim=(0, 10), ylim=(-2, 2),
4 xlabel='x', ylabel='sin(x)',
5 title='A Simple Plot');
6