title: Center the third subplot in the middle of second row python
body: <p>I have a figure consisting of 3 subplots. I would like to locate the last subplot in the middle of the second row. Currently it is located in the left bottom of the figure. How do I do this? I cannot find the answer on stack overflow.</p>
  
  <pre><code>    fig, axes = plt.subplots(nrows=2, ncols=2, figsize=(13,10))
      ax= axes.flatten()
      ax[0].plot(vDT, np.cumsum(mWopt0[asset0,:])*percentage/iTT, label= 'COAL, c = 0')
      ax[0].legend()
      ax[0].set_title('Proportion in most invested stock')
      ax[1].plot(vDT, np.cumsum(mWopt01[asset01,:])*percentage/iTT, label= 'OINL, c = 0.1')
      ax[1].plot(vDT, np.cumsum(mWopt03[asset03,:])*percentage/iTT, label= 'OINL, c = 0.3')
      ax[1].plot(vDT, np.cumsum(mWopt05[asset05,:])*percentage/iTT, label= 'OINL, c = 0.5')
      ax[1].plot(vDT, np.cumsum(mWopt2[asset2,:])*percentage/iTT, label= 'OINL, c = 2')
      ax[1].plot(vDT, np.cumsum(mWopt5[asset5,:])*percentage/iTT, label= 'OINL, c = 5')
      ax[1].plot(vDT, np.cumsum(mWopt10[asset10,:])*percentage/iTT, label= 'OINL, c = 10')
      ax[1].legend()
      ax[1].set_title('Proportion in most invested stock')
      ax[2].plot(vDT, np.cumsum(mWopt01[index,:])*percentage/iTT, label= 'c = 0')
      ax[2].plot(vDT, np.cumsum(mWopt01[index,:])*percentage/iTT, label= 'c = 0.1')
      ax[2].plot(vDT, np.cumsum(mWopt03[ index,:])*percentage/iTT, label= 'c = 0.3')
      ax[2].plot(vDT, np.cumsum(mWopt05[index,:])*percentage/iTT, label= 'c = 0.5')
      ax[2].plot(vDT, np.cumsum(mWopt2[index,:])*percentage/iTT, label= 'c = 2')
      ax[2].plot(vDT, np.cumsum(mWopt5[index,:])*percentage/iTT, label= 'c = 5')
      ax[2].plot(vDT, np.cumsum(mWopt10[index,:])*percentage/iTT, label= 'c = 10')
      ax[2].legend()
      ax[2].set_title('Proportion invested in index')
      ax[0].set_ylabel('Expanding window weight')
      ax[1].set_ylabel('Expanding window weight')
      ax[2].set_ylabel('Expanding window weight')
      ax[3].remove()
      fig.autofmt_xdate(bottom=0.2, rotation=75, ha='right')
      plt.savefig('NSE_por_unrestricted_mostweightSI.jpg', bbox_inches='tight')
      plt.show()
  </code></pre>