title: My matplotlib.pyplot legend is being cut off
body: <p>I'm attempting to create a plot with a legend to the side of it using matplotlib. I can see that the plot is being created, but the image bounds do not allow the entire legend to be displayed.</p>
  
  <pre><code>lines = []
  ax = plt.subplot(111)
  for filename in args:
      lines.append(plt.plot(y_axis, x_axis, colors[colorcycle], linestyle='steps-pre', label=filename))
  ax.legend(bbox_to_anchor=(1.05, 1), loc=2, borderaxespad=0.)
  </code></pre>
  
  <p>This produces:
  <img src="https://i.stack.imgur.com/C6WhE.png" alt="enter image description here"></p>