multiple-plots/script.rst
changeset 521 88a01948450d
parent 512 b378844641fd
equal deleted inserted replaced
520:8249ae9d570a 521:88a01948450d
    18      
    18      
    19 .. Author              : Madhu
    19 .. Author              : Madhu
    20    Internal Reviewer 1 :         [potential reviewer: Puneeth]
    20    Internal Reviewer 1 :         [potential reviewer: Puneeth]
    21    Internal Reviewer 2 : Nishanth
    21    Internal Reviewer 2 : Nishanth
    22    External Reviewer   :
    22    External Reviewer   :
       
    23    Language Reviewer   : Bhanukiran
       
    24    Checklist OK?       : <, not OK> []
       
    25 
    23 
    26 
    24 Script
    27 Script
    25 ------
    28 ------
    26 
    29 
    27 {{{ Show the slide containing the title }}}
    30 {{{ Show the slide containing the title }}}
   203   title('sin(y)')
   206   title('sin(y)')
   204   savefig('/home/user/sine.png')
   207   savefig('/home/user/sine.png')
   205 
   208 
   206 {{{ Have both plot window and ipython side by side }}}
   209 {{{ Have both plot window and ipython side by side }}}
   207 
   210 
   208 We also titled the our first plot as 'sin(y)' which we did not do for
   211 We also titled our first plot as 'sin(y)' which we did not do for
   209 the second plot.
   212 the second plot.
   210 
   213 
   211 Let us attempt another exercise problem
   214 Let us attempt another exercise problem
   212 
   215 
   213 %% 2 %% Draw a line of the form y = x as one figure and another line
   216 %% 2 %% Draw a line of the form y = x as one figure and another line
   262 subplot command takes three arguments, the first being the number of
   265 subplot command takes three arguments, the first being the number of
   263 rows of subplots that must be created,
   266 rows of subplots that must be created,
   264 
   267 
   265 {{{ Have both plot window and ipython side by side }}}
   268 {{{ Have both plot window and ipython side by side }}}
   266 
   269 
   267 in this case we have 2 so it spilts the plotting area horizontally for
   270 in this case we have 2 as the first argument so it spilts the plotting area horizontally for
   268 two subplots. The second argument specifies the number of coloumns of
   271 two subplots. The second argument specifies the number of coloumns of
   269 subplots that must be created. We passed 1 as the argument so the
   272 subplots that must be created. We passed 1 as the argument so the
   270 plotting area won't be split vertically and the last argument
   273 plotting area won't be split vertically and the last argument
   271 specifies what subplot must be created now in the order of the serial
   274 specifies what subplot must be created now in the order of the serial
   272 number. In this case we passed 1 as the argument, so the first subplot
   275 number. In this case we passed 1 as the argument, so the first subplot