summaryrefslogtreecommitdiff
path: root/basic-plot.txt
diff options
context:
space:
mode:
authorShantanu Choudhary2010-04-07 22:11:33 +0530
committerShantanu Choudhary2010-04-07 22:11:33 +0530
commit7993518d769ece6691b9ba5fb00e2887efd79455 (patch)
tree055aa87a6b1162c15916688a282f48a94e2b6c09 /basic-plot.txt
parent6f8ed8e7171d44c858a494aa0a9b1aab6c67282e (diff)
downloadst-scripts-7993518d769ece6691b9ba5fb00e2887efd79455.tar.gz
st-scripts-7993518d769ece6691b9ba5fb00e2887efd79455.tar.bz2
st-scripts-7993518d769ece6691b9ba5fb00e2887efd79455.zip
Changes to basic-plotting file.
Diffstat (limited to 'basic-plot.txt')
-rw-r--r--basic-plot.txt18
1 files changed, 7 insertions, 11 deletions
diff --git a/basic-plot.txt b/basic-plot.txt
index 2aa33b4..dc25776 100644
--- a/basic-plot.txt
+++ b/basic-plot.txt
@@ -4,9 +4,6 @@
*The intended audience for this tutorial are Engineering, mathematics and science teachers and students
-*The goals are to
-help one use Python as a basic plotting tool.
-
*In this tutorial, we will cover the basics of the Plotting features available in Python.
For this we shall use Ipython and pylab.
Ipython is An Enhanced Interactive Python interpreter. It provides additional features like tab completion,easier access to help , and many other useful features which are not present in the vanilla Python interpreter.
@@ -43,14 +40,8 @@ and Ipython changed the prompt . To get the old prompt back type crtl-c
In []: x = linspace(0, 2*pi, 50)
+*As you can see linspace can take three parameters start, stop, and num and returns num evenly space points . You can scroll through the help to know more about the function
-To obtain the plot we use,
-In []: plot(x, sin(x))
-***
-As you can see a plot has appeared on the screen.
-***
-
-The plot has the default color and line properties.
*To know more about any function, example for the 'linspace' function you can type ? after it .
@@ -60,8 +51,13 @@ It shows documentation related to linspace function. 'help' talks in detail abou
At any time you want to come out of the help use 'q' key.
See how easy it is to get help in IPython.
-*As you can see linspace can take three parameters start, stop, and num and returns num evenly space points . You can scroll through the help to know more about the function
+To obtain the plot we use,
+In []: plot(x, sin(x))
+***
+As you can see a plot has appeared on the screen.
+***
+The plot has the default color and line properties.
In this case we have used two commands
'pi' and 'sin' these come from 'pylab' library called using -pylab.