title: Creating label in Scatter Matplotlib from dataFrame
body: <p>I have DataFrame (dfcell) as showed in a sample bellow:</p>
  
  <p><a href="https://i.stack.imgur.com/Se5P5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Se5P5.png" alt="enter image description here"></a></p>
  
  <p>This DataFrame has 104 rows and I need to show in Scatter Plot.</p>
  
  <p>The columns <code>location_cell_lng</code> and <code>location_cell_lat</code> are Cartesian axis and <code>class_m</code> is the target.</p>
  
  <p>I did that</p>
  
  <pre><code>plt.scatter(dfcell['location_cell_lng'], dfcell['location_cell_lat'], c=dfcell['class_m'])
  </code></pre>
  
  <p>I don't get to put legend to the column class_m that has a range of 0 to 5.</p>
  
  <p>I tried the code in the link bellow, but without success
  <a href="https://matplotlib.org/gallery/lines_bars_and_markers/scatter_with_legend.html#sphx-glr-gallery-lines-bars-and-markers-scatter-with-legend-py" rel="nofollow noreferrer">https://matplotlib.org/gallery/lines_bars_and_markers/scatter_with_legend.html#sphx-glr-gallery-lines-bars-and-markers-scatter-with-legend-py</a></p>
  
  <p>How can I to do this?</p>