title: Subplot of two graphs in Python not showing correctly
body: <p>I'm trying to print 2 graphs based on some training data in Python but it looks like subplot it's not working, it's making me two separate figures, this is not a problem, the problem it's that the second graph it's empty... Here it's my first plot: </p>
  
  <pre class="lang-py prettyprint-override"><code>df = pd.read_csv("Boston.csv")
  df = pd.DataFrame(
      {"Actual value of medv": y_test, "Predicted": y_pred}
  )  
  df1 = df.head()
  plt.subplot(211)  # here idk why it's not working
  # plot the Bar graph showing the comparison of 
  #  Actual and Predicted values.
  df1.plot(
      kind="bar", figsize=(16, 10)
  )  
  plt.show()  
  # Though my model is not very precise, some predicted 
  #  percentages are close to the actual ones.
  plt.subplot(212)
  # Plot the linear regression line
  fig = plt.scatter(X_train, y_train)
  
  # Create a range of points. Compute 
  #  yhat=coeff1*x + intercept 
  #  and plot the regression line.
  x = np.linspace(0, 40, 20)
  figura1 = plt.plot(x, linreg.coef_ * x + linreg.intercept_, color="red")
  plt.legend(["Regression line", "data"])
  </code></pre>
  
  <p>Here you can see how my graph it's looking right now: <a href="https://i.stack.imgur.com/xYJ4D.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xYJ4D.png" alt="with subplot on"></a></p>
  
  <p>and here it's with deleting subplots: <a href="https://i.stack.imgur.com/I41fZ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/I41fZ.png" alt="without subplot"></a></p>
  
  <p>CSV file can be found here: <a href="https://github.com/tvganesh/MachineLearning-RandPython/blob/master/Boston.csv" rel="nofollow noreferrer">https://github.com/tvganesh/MachineLearning-RandPython/blob/master/Boston.csv</a></p>