graphing with matplotlib pyplot this figure is generated by the following programimport matplotlib pyplot as pyplot range( range( - set up the grid of subplots to be by grid_size=' initialize figure figure pyplot figure(add first subplot position grid_size ' print('adding first subplot to position'positionaxis figure add_subplot(positionaxis set(title='subplot( , , )'axis plot(tsadd second subplot position grid_size ' print('adding second subplot to position'positionaxis figure add_subplot(positionaxis set(title='subplot( , , )'axis plot(ts' -'add third subplot position grid_size ' print('adding third subplot to position'positionaxis figure add_subplot(positionaxis set(title='subplot( , , )'axis plot(ts' -'add fourth subplot position grid_size ' print('adding fourth subplot to position'positionaxis figure add_subplot(positionaxis set(title='subplot( , , )'axis plot(ts' -'display the chart pyplot show(