author | Christopher Burns <chris.d.burns@gmail.com> |
Sun, 20 Jun 2010 22:50:03 -0700 | |
branch | scipy2010 |
changeset 414 | 68ef3dced7a0 |
parent 396 | 502d4d151fa2 |
child 416 | 3ec547912b3c |
permissions | -rw-r--r-- |
396
502d4d151fa2
Added four_plot.py to exercise folder.
Puneeth Chaganti <punchagan@gmail.com>
parents:
diff
changeset
|
1 |
x=linspace(-5*pi, 5*pi, 500) |
502d4d151fa2
Added four_plot.py to exercise folder.
Puneeth Chaganti <punchagan@gmail.com>
parents:
diff
changeset
|
2 |
plot(x, x, 'b') |
502d4d151fa2
Added four_plot.py to exercise folder.
Puneeth Chaganti <punchagan@gmail.com>
parents:
diff
changeset
|
3 |
plot(x, -x, 'b') |
502d4d151fa2
Added four_plot.py to exercise folder.
Puneeth Chaganti <punchagan@gmail.com>
parents:
diff
changeset
|
4 |
plot(x, sin(x), 'g', linewidth=2) |
502d4d151fa2
Added four_plot.py to exercise folder.
Puneeth Chaganti <punchagan@gmail.com>
parents:
diff
changeset
|
5 |
plot(x, x*sin(x), 'r', linewidth=3) |
502d4d151fa2
Added four_plot.py to exercise folder.
Puneeth Chaganti <punchagan@gmail.com>
parents:
diff
changeset
|
6 |
legend(['x', '-x', 'sin(x)', 'xsin(x)']) |
502d4d151fa2
Added four_plot.py to exercise folder.
Puneeth Chaganti <punchagan@gmail.com>
parents:
diff
changeset
|
7 |
annotate('origin', xy = (0, 0)) |
502d4d151fa2
Added four_plot.py to exercise folder.
Puneeth Chaganti <punchagan@gmail.com>
parents:
diff
changeset
|
8 |
title('Four Plot') |
502d4d151fa2
Added four_plot.py to exercise folder.
Puneeth Chaganti <punchagan@gmail.com>
parents:
diff
changeset
|
9 |
xlim(-5*pi, 5*pi) |
502d4d151fa2
Added four_plot.py to exercise folder.
Puneeth Chaganti <punchagan@gmail.com>
parents:
diff
changeset
|
10 |
ylim(-5*pi, 5*pi) |
502d4d151fa2
Added four_plot.py to exercise folder.
Puneeth Chaganti <punchagan@gmail.com>
parents:
diff
changeset
|
11 |
show() |