legend for scatter plot python code example
Example: scatter plot of a dataframe in python
>>> ax2 = df.plot.scatter(x='length',
... y='width',
... c='species',
... colormap='viridis')