I have a scatter plot in matplotlib. The scatter plot shows circles with different shades of color and also different sizes.
I would like to add a legend only for the size of the circles. The legend should not be colored by the color of the cirlcles in the plot, but rather have say a 'grey' color. Then there should be three entries corresponding to a big grey circle, medium grey circle, and small grey circle, all with some text. In one legend entry, I only need a single circle, not multiple circles that seems to be default in matplotlib.
How can I do this?
I've tried this based on this http://matplotlib.org/users/legend_guide.html,
but it gives a rectangle, rather than a circle.
red_patch = mpatches.Circle((3,3), radius = 1000, color='blue', label='The red data')
ax1.legend(handles=[red_patch])
