title: plot overlaps using matplotlib
body: <p>I am learning matplotlib.</p>
  <p>I am trying to plot two below plots in a single plot using matplotlib.</p>
  <p><a href="https://i.stack.imgur.com/rubJf.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rubJf.png" alt="enter image description here" /></a></p>
  <p><a href="https://i.stack.imgur.com/AzjDT.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/AzjDT.png" alt="enter image description here" /></a></p>
  <p>But it overlaps.
  <a href="https://i.stack.imgur.com/yfxEX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/yfxEX.png" alt="enter image description here" /></a></p>
  <p>Here is my code.</p>
  <pre><code>import matplotlib.pyplot as plt
  import pandas as pd
  import numpy as np
  
  train_error = [0.26462888486225206, 0.26462383329393313, 0.2628674962680674, 0.2553700231555298, 0.17473717177688022, 0.14773444580059242, 0.1468299949185866, 0.1468235689407127, 0.1439370366766204]
  test_error = [0.8438224756653776, 0.8442034650577578, 1.018608707726192, 4.853704454584892, 123.69312582226338, 798.4569874115062, 3205.5264038946007, 9972.587330411312, 10787335.618580218]
  
  plt.plot(train_error)
  plt.plot(test_error)
  plt.show()
  </code></pre>
  <p>Where am i doing wrong ? Can anyone please <strong>guide / help</strong> ?</p>