Sri Harsha V thinks this is interesting: x = np.linspace(0, 2*math.pi) plt.plot(x, np.sin(x), label=r'$\sin(x)$') plt.plot(x, np.cos(x), 'ro', label=r'$\cos(x)$') plt.title(r'Two plots in a graph') plt.legend() From Introducing IPython from Mastering Python for Finance by James Ma Weiming Publisher: Packt Publishing Released: April 2015 Note Here plt.show() is missing. At least for me, it didn't work without including that statement at the last line. Share this highlight http://www.safaribooksonline.com/a/mastering-python-for/315138/ Twitter Facebook Google Plus Email Get Instant Access Now Start a Free Trial Learn about Safari for Business Have an account? Sign in. Minimise Unlock the rest of Mastering Python for Finance and 30,000 other books and videos By clicking this box, you confirm that you have read and agree to the terms and conditions of our Membership Agreement, and you understand that when your trial period ends, you will be required to provide billing information if you wish to continue using the service. Unlock the rest of this book Start a Free 10-Day Trial loading Learn about Safari for Business Have an account? Sign in.