diff options
Diffstat (limited to 'embellishing_a_plot.rst')
-rw-r--r-- | embellishing_a_plot.rst | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/embellishing_a_plot.rst b/embellishing_a_plot.rst index 3c22ef9..acb601f 100644 --- a/embellishing_a_plot.rst +++ b/embellishing_a_plot.rst @@ -17,7 +17,8 @@ Let us start ipython with pylab loaded, by typing on the terminal ipython -pylab -#[madhu: I feel the instructions should precede the actual action, +.. #[madhu: I feel the instructions should precede the actual action, + since while recording we need to know before hand what we need to do] We shall first make a simple plot and start decorating it. @@ -55,7 +56,7 @@ As we can see we have the same plot but now in red colour. .. #[Madhu: diff again] -To alter the thickness of the line, we use the =linewidth= argument in the plot +To alter the thickness of the line, we use the ``linewidth`` argument in the plot command. Hence :: @@ -90,7 +91,7 @@ A combination of colour and linewidth would do the job for us. Hence produces the required plot -#[Nishanth]: I could not think of a SIMPLE recipe approach for +.. #[Nishanth]: I could not think of a SIMPLE recipe approach for introducing linestyle. Hence the naive approach. .. #[[Anoop: I guess the recipe is fine, but would be better if you @@ -167,7 +168,7 @@ the figure does not have any description describing the plot. .. #[Madhu: Added "not". See the diff] -We will now add a title to the plot by using the =title= command. +We will now add a title to the plot by using the ``title`` command. :: title("Parabolic function -x^2+4x-5") @@ -175,7 +176,7 @@ We will now add a title to the plot by using the =title= command. {{{ Show the plot window and point to the title }}} The figure now has a title which describes what the plot is. The -=title= command as you can see, takes a string as an argument and sets +``title`` command as you can see, takes a string as an argument and sets the title accordingly. .. #[Madhu: See the diff] @@ -194,7 +195,7 @@ for instance, we can use and we get the polynomial formatted properly. -#[Nishanth]: Unsure if I have to give this exercise since enclosing the whole +.. #[Nishanth]: Unsure if I have to give this exercise since enclosing the whole string in LaTex style is not good .. #[[Anoop: I guess you can go ahead with the LaTex thing, it's @@ -224,8 +225,8 @@ and y axes. Hence we shall label x-axis to "x" and y-axis to "f(x)" :: {{{ Switch to plot window and show the xlabel }}} -As you can see, =xlabel= command takes a string as an argument, -similar to the =title= command and sets it as the label to x-axis. +As you can see, ``xlabel`` command takes a string as an argument, +similar to the ``title`` command and sets it as the label to x-axis. .. #[See the diff] @@ -264,7 +265,7 @@ like to name the point accordingly. We can do this by using {{{ Show the annotation that has appeared on the plot }}} -As you can see, the first argument to =annotate= command is the name we would +As you can see, the first argument to ``annotate`` command is the name we would like to mark the point as and the second argument is the co-ordinates of the point at which the name should appear. It is a sequence containing two numbers. The first is x co-ordinate and second is y co-ordinate. @@ -295,7 +296,8 @@ we have looked at {{{ Show the "sponsored by FOSSEE" slide }}} -#[Nishanth]: Will add this line after all of us fix on one. +.. #[Nishanth]: Will add this line after all of us fix on one. + This tutorial was created as a part of FOSSEE project, NME ICT, MHRD India Hope you have enjoyed and found it useful. |