title: How to add titles, axis label, and legend in sagemath?
body: <p>I'm currently making some graphs using the online workbook hosted by sagemath.</p>
  
  <p>This is an example of some code I'm making to try and generate a graph:</p>
  
  <pre><code>myplot = list_plot(zip(range(20), range(20)), color='red')
  myplot2 = list_plot(zip(range(20), [i*2 for i in range(20)]), color='blue')
  combined = myplot + myplot2
  combined.show()
  </code></pre>
  
  <p>It's very basic -- it's essentially two scatter plots juxtaposed on top of each other.</p>
  
  <p>Is there a way to easily add axis labels, a legend, and optionally a title?</p>
  
  <p>I managed to hack out a solution that lets me add axis labels, but it looks really ugly and stupid.</p>
  
  <pre><code>from matplotlib.backends.backend_agg import FigureCanvasAgg 
  def make_graph(plot, labels, figsize=6):
      mplot = plot.matplotlib(axes_labels=labels, figsize=figsize)
      mplot.set_canvas(FigureCanvasAgg(mplot))
      subplot = mplot.get_axes()[0]
      subplot.xaxis.set_label_coords(x=0.3,y=-0.12)
      return mplot
  
  a = make_graph(combined, ['x axis label', 'y axis label'])
  a.savefig('test.png')
  </code></pre>
  
  <p>Is there an easier way to add axis labels, legend, and a title?</p>