title: Python figure plots on half screen
body: <p>I have the following code and am really struggling to get the plot on the whole screen.</p>
  
  <pre><code>fig = plt.figure()
  fig.subplots_adjust(bottom=0.2)
  ax1 = fig.add_subplot(212)
  ax1.set_xlabel('Time')
  ax1.set_ylim(0,time)
  line1 = ax1.plot(a,'bo-',label='One')
  line2 = ax1.plot(b,'mo-',label='Two')
  lines = line1 + line2
  labels = [l.get_label() for l in lines]
  ax1.legend(lines, labels, loc=(0,-0.5), ncol=2)
  plt.show()
  </code></pre>
  
  <p>I tried all the answers I found on the web and all the suggestions in the thread  <a href="https://stackoverflow.com/questions/28187202/extend-python-plots-to-full-screen">Extend python plots to full screen</a>, none of them worked.</p>
  
  <p>Any help would be appreciated!</p>
  
  <p>P.S. I'm not using</p>
  
  <pre><code>t = np.arange(b)
  plt.plot(t, a, 'bo-')
  </code></pre>
  
  <p>for example because it doesn't work if the x and y values are not the same and I cannot predefine x as it varies for my program.</p>