title: '%matplotlib inline' causes error in following code
body: <p>If I comment out '%matplotlib inline' the code runs fine
  But if I leave '%matplotlib inline' uncommented, 'fig, axes = plt.subplots(nrows=x_p, ncols=y_p)' starts to create blank plots, and following code triggers error as below. Any idea why?</p>
  
  <p><a href="https://i.stack.imgur.com/6jMYg.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6jMYg.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/Xsgr8.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Xsgr8.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/BslhT.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/BslhT.png" alt="enter image description here"></a></p>