summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnoop Jacob Thomas2010-10-28 12:46:14 +0530
committerAnoop Jacob Thomas2010-10-28 12:46:14 +0530
commitb99067e0febcfdadd2c6b42fb18d16ded39ac6cb (patch)
tree35a514e20a6e8ea309041741cc40d642a06829d7
parent9a4419e6156574a1fe5dbf46981c8516c9a819a0 (diff)
downloadst-scripts-b99067e0febcfdadd2c6b42fb18d16ded39ac6cb.tar.gz
st-scripts-b99067e0febcfdadd2c6b42fb18d16ded39ac6cb.tar.bz2
st-scripts-b99067e0febcfdadd2c6b42fb18d16ded39ac6cb.zip
made changes to other type of plots script after internal review.
-rw-r--r--other-type-of-plots/script.rst16
1 files changed, 11 insertions, 5 deletions
diff --git a/other-type-of-plots/script.rst b/other-type-of-plots/script.rst
index 4bb5480..444611b 100644
--- a/other-type-of-plots/script.rst
+++ b/other-type-of-plots/script.rst
@@ -18,7 +18,7 @@
.. Author : Anoop Jacob Thomas <anoop@fossee.in>
- Internal Reviewer :
+ Internal Reviewer : Puneeth
External Reviewer :
Checklist OK? : <put date stamp here, if OK> [2010-10-05]
@@ -40,9 +40,10 @@ Hello and welcome to the tutorial other type of plots.
.. them? Tell that we have only looked at one type of plot all the
.. while, etc.]
-In this tutorial we will cover scatter plot, pie chart, bar chart and
-log-log plot. We will also see few other plots and also introduce you to
-the matplotlib help.
+Till now we have seen only one type of plot, and in this tutorial us
+see more type of plots like scatter plot, pie chart, bar chart and
+log-log plot. We will see few other more plots and also see an
+introduction to matplotlib help.
.. #[Puneeth: cover, see and introduce you. be consistent. does, the
.. "We" include the viewer or not?]
@@ -87,6 +88,10 @@ and it can be done as ::
year,profit =
loadtxt('/home/fossee/other-plot/company-a-data.txt',dtype=type(int()))
+By default loadtxt converts the value to float. The
+``dtype=type(int())`` argument in loadtxt converts the value to
+integer as we require the data as integer further in the tutorial.
+
.. #[Puneeth: make a remark about dtype, that has not been covered in
.. the loadtxt tutorial.]
@@ -114,7 +119,8 @@ Pause here and solve the question before moving on.
.. scatter(year,profit,color='r',marker='d')
-Now let us move on to pie chart.
+Now let us see another plot, pie chart and try to plot the same data
+as a pie chart.
.. #[Puneeth: instead of just saying that, say that let's plot a pie
.. chart for the same data. continuity, will be good.]