diff options
author | Puneeth Chaganti | 2010-05-01 16:30:45 +0530 |
---|---|---|
committer | Puneeth Chaganti | 2010-05-01 16:30:45 +0530 |
commit | 3bdb797e77bbd672e96260d3ffa025ec38dfc705 (patch) | |
tree | 82ddba32180e727ae9f3dfb05f99ebb2bfdd1e94 | |
parent | 8f29d8c89719b8ebf8f6302ed444e621ba1cf92a (diff) | |
download | workshops-more-scipy-3bdb797e77bbd672e96260d3ffa025ec38dfc705.tar.gz workshops-more-scipy-3bdb797e77bbd672e96260d3ffa025ec38dfc705.tar.bz2 workshops-more-scipy-3bdb797e77bbd672e96260d3ffa025ec38dfc705.zip |
Added four_plot.py to exercise folder.
-rw-r--r-- | day1/exercise/four_plot.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/day1/exercise/four_plot.py b/day1/exercise/four_plot.py new file mode 100644 index 0000000..5417ee5 --- /dev/null +++ b/day1/exercise/four_plot.py @@ -0,0 +1,11 @@ +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() |