title: Matplotlib scatter plot legend
body: <p>I created a 4D scatter plot graph to represent different temperatures in a specific area. When I create the legend, the legend shows the correct symbol and color but adds a line through it. The code I'm using is:</p>
  
  <pre><code>colors=['b', 'c', 'y', 'm', 'r']
  lo = plt.Line2D(range(10), range(10), marker='x', color=colors[0])
  ll = plt.Line2D(range(10), range(10), marker='o', color=colors[0])
  l = plt.Line2D(range(10), range(10), marker='o',color=colors[1])
  a = plt.Line2D(range(10), range(10), marker='o',color=colors[2])
  h = plt.Line2D(range(10), range(10), marker='o',color=colors[3])
  hh = plt.Line2D(range(10), range(10), marker='o',color=colors[4])
  ho = plt.Line2D(range(10), range(10), marker='x', color=colors[4])
  plt.legend((lo,ll,l,a, h, hh, ho),('Low Outlier', 'LoLo','Lo', 'Average', 'Hi', 'HiHi', 'High Outlier'),numpoints=1, loc='lower left', ncol=3, fontsize=8)
  </code></pre>
  
  <p>I tried changing <code>Line2D</code> to <code>Scatter</code> and <code>scatter</code>. <code>Scatter</code> returned an error and <code>scatter</code> changed the graph and returned an error.</p>
  
  <p>With <code>scatter</code>, I changed the <code>range(10)</code> to the lists containing the data points. Each list contains either the x, y, or z variable.</p>
  
  <pre><code>lo = plt.scatter(xLOutlier, yLOutlier, zLOutlier, marker='x', color=colors[0])
  ll = plt.scatter(xLoLo, yLoLo, zLoLo, marker='o', color=colors[0])
  l = plt.scatter(xLo, yLo, zLo, marker='o',color=colors[1])
  a = plt.scatter(xAverage, yAverage, zAverage, marker='o',color=colors[2])
  h = plt.scatter(xHi, yHi, zHi, marker='o',color=colors[3])
  hh = plt.scatter(xHiHi, yHiHi, zHiHi, marker='o',color=colors[4])
  ho = plt.scatter(xHOutlier, yHOutlier, zHOutlier, marker='x', color=colors[4])
  plt.legend((lo,ll,l,a, h, hh, ho),('Low Outlier', 'LoLo','Lo', 'Average', 'Hi', 'HiHi',     'High Outlier'),scatterpoints=1, loc='lower left', ncol=3, fontsize=8)
  </code></pre>
  
  <p>When I run this, the legend no longer exists, it is a small white box in the corner with nothing in it. </p>
  
  <p>Any advice?</p>