diff options
author | Jovina | 2011-05-18 02:44:12 -0700 |
---|---|---|
committer | Jovina | 2011-05-18 02:44:12 -0700 |
commit | 8d4d17754e1a8779f8cb0648cddba0ebcb37a72e (patch) | |
tree | 2c03e7c8959895b8495948661ab22afd9f644457 /using_plot_interactively/script.rst | |
parent | 140466a21286c6de791f305f193a0bfa48bd7ae3 (diff) | |
download | st-scripts-8d4d17754e1a8779f8cb0648cddba0ebcb37a72e.tar.gz st-scripts-8d4d17754e1a8779f8cb0648cddba0ebcb37a72e.tar.bz2 st-scripts-8d4d17754e1a8779f8cb0648cddba0ebcb37a72e.zip |
Minor changes to the script 'using plot interactively' based on re-review.
Diffstat (limited to 'using_plot_interactively/script.rst')
-rw-r--r-- | using_plot_interactively/script.rst | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/using_plot_interactively/script.rst b/using_plot_interactively/script.rst index 00e203a..fb9e0ef 100644 --- a/using_plot_interactively/script.rst +++ b/using_plot_interactively/script.rst @@ -269,7 +269,7 @@ Let's revise quickly what we have learnt today 1. To Start Ipython with pylab. #. To Use the linspace function to create `num` equally spaced points in a region. - #. To Find the length of sequnces using len function. + #. To Find the length of sequences using len function. #. To Plot mathematical functions using plot. #. To Clear drawing area using clf. #. To Use the UI of plot for studying it better and using functionalities like save,zoom and moving the plots on x and y axis. @@ -282,9 +282,13 @@ Let's revise quickly what we have learnt today 1. Create 100 equally spaced points between -pi/2 and pi/2? -2. How do you clear a figure in ipython? +2. What will the command ''linspace(-pi,pi,100)'' do. + - returns 100 evenly spaced samples from -pi to pi + - returns 100 evenly spaced samples from -pi to pi excluding pi but including -pi + - returns 100 evenly spaced samples from -pi to pi excluding -pi but including pi + - returns 100 evenly spaced samples from -pi to pi including both -pi and pi -3. How do find the length of a sequence? +3. How do you find the length of a sequence? .. L25 @@ -296,16 +300,16 @@ And the answers, 1. We use the command `linspace(-pi/2,pi/2,100)` to create 100 eually spaced lines between the points -pi/2 and pi/2. -2. We use `clf()` function to clear a figure. +2. The command ''linspace(-pi,pi,100)'' will return 100 evenly spaced samples from -pi to pi including both -pi and pi. 3. `len(sequence_name)` is the function used to find out the length of a sequence. .. L26 -{{{ A thank you slide }}} +{{{ Show thank you slide }}} .. R26 Hope you have enjoyed and found it useful. -Thankyou! +Thank you! |