multiple-plots/script.rst
changeset 511 caf39009044d
parent 311 3f942b8d3f2f
child 512 b378844641fd
equal deleted inserted replaced
510:06561ee0f6a4 511:caf39009044d
    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
    23 
    24 
    24 Script
    25 Script
    25 ------
    26 ------
    26 
    27 
    27 {{{ Show the slide containing the title }}}
    28 {{{ Show the slide containing the title }}}
   203   title('sin(y)')
   204   title('sin(y)')
   204   savefig('/home/user/sine.png')
   205   savefig('/home/user/sine.png')
   205 
   206 
   206 {{{ Have both plot window and ipython side by side }}}
   207 {{{ Have both plot window and ipython side by side }}}
   207 
   208 
   208 We also titled the our first plot as 'sin(y)' which we did not do for
   209 We also titled our first plot as 'sin(y)' which we did not do for
   209 the second plot.
   210 the second plot.
   210 
   211 
   211 Let us attempt another exercise problem
   212 Let us attempt another exercise problem
   212 
   213 
   213 %% 2 %% Draw a line of the form y = x as one figure and another line
   214 %% 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
   263 subplot command takes three arguments, the first being the number of
   263 rows of subplots that must be created,
   264 rows of subplots that must be created,
   264 
   265 
   265 {{{ Have both plot window and ipython side by side }}}
   266 {{{ Have both plot window and ipython side by side }}}
   266 
   267 
   267 in this case we have 2 so it spilts the plotting area horizontally for
   268 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
   269 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
   270 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
   271 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
   272 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
   273 number. In this case we passed 1 as the argument, so the first subplot