using python modules/four_plot.py
author Puneeth Chaganti <punchagan@fossee.in>
Fri, 05 Nov 2010 21:01:23 +0530
changeset 378 fa4c9b11452b
parent 261 c7f0069d698a
permissions -rw-r--r--
Changes to getting started with ipython based on review.

x=linspace(-5*pi, 5*pi, 500)
plot(x, x, 'b')
plot(x, -x, 'b')
plot(x, sin(x), 'g', linewidth=2)
plot(x, x*sin(x), 'r', linewidth=3)
legend(['x', '-x', 'sin(x)', 'xsin(x)'])
annotate('origin', xy = (0, 0))
title('Four Plot')
xlim(-5*pi, 5*pi)
ylim(-5*pi, 5*pi)
#show()