title: How can I remove the subplots?
body: <p>Hello I have the following function that I get from scikit-learn site, I try to reduce the function only for one plot, but I cannot do more than this:</p>
  <p><a href="https://i.stack.imgur.com/2vPVT.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2vPVT.png" alt="enter image description here" /></a></p>
  <p>Using the following code:</p>
  <pre><code>def plot_learning_curve(estimator,X, y, axes=None, cv=None,
                          n_jobs=None, train_sizes=np.linspace(.1, 1.0, 5)):
      
      _, axes = plt.subplots(2, 1, figsize=(10, 20))
  
      axes[0].set_title('Curvas de error de aprendizaje')
      axes[0].set_xlabel(&quot;Nº Ejemplos de entrenamiento&quot;)
      axes[0].set_ylabel(&quot;Error: 1 - F1&quot;)
  
      train_sizes, train_scores, test_scores, fit_times, _ = \
          learning_curve(estimator, X, y, cv=cv, n_jobs=n_jobs,
                         train_sizes=train_sizes,
                         return_times=True)
      train_scores_mean = np.mean([1] - train_scores, axis=1)
      train_scores_std = np.std([1] - train_scores, axis=1)
      test_scores_mean = np.mean([1] - test_scores, axis=1)
      test_scores_std = np.std([1] - test_scores, axis=1)
     
  
      # Plot learning curve
      axes[0].grid()
      axes[0].fill_between(train_sizes, train_scores_mean - train_scores_std,
                           train_scores_mean + train_scores_std, alpha=0.1,
                           color=&quot;r&quot;)
      axes[0].fill_between(train_sizes, test_scores_mean - test_scores_std,
                           test_scores_mean + test_scores_std, alpha=0.1,
                           color=&quot;g&quot;)
      axes[0].plot(train_sizes, train_scores_mean, 'o-', color=&quot;r&quot;,
                   label=&quot;Error de entrenamiento&quot;)
      axes[0].plot(train_sizes, test_scores_mean, 'o-', color=&quot;g&quot;,
                   label=&quot;Error de validación medio (cv=10)&quot;)
      axes[0].legend(loc=&quot;best&quot;)
  
      return plt
  </code></pre>
  <p>The question is how can I remove the second subplot.</p>
  <p>Thanks</p>