Working with Pyplot

code

Please what does the number signify?

Hi, billy. Those numbers are arranged as follows: subplot(nrows, ncols, index). The parameters are:

  • nrows: number of rows in the grid plot (in your code it will be 2 rows when plotting)
  • ncols: number of columns in the grid plot (in your code it will be 1 column when plotting)
  • index: position on the grid plot (in your code the variables will be plotted in the first position of the grid)
3 Likes

Hi Billy, Just to visualize Prof Julians response, see attached snapshot. Basically you were planning to draw a FIGURE with 2 charts (subplots), one each in 2 rows.

3 Likes

thanks @elugan, this really helped.