[Matplotlib-users] Scatter legend doesn't show markers

Erik Tollerud wrote:

I use the scatter(x,y) command to make scatter plots, but I noticed
today (on the SVN version of mpl) that when I call legend() after
giving scatter(x,y,label='somelabel') , the legend doesn't show the
marker symbols - it only has a square patch colored in the color that
was used for the scatter plot. Is this a bug, or intended behavior?
(and is there a work-around to show the marker symbols in the legend?)

Hi Erik,

I would say it's neither a bug nor an intended bahavior. It's just not implemented -- so you might call it a misbehaviour :wink:

I too hope that this will be fixed/added, since it's an issue open some time now (I guess since scatter was implemented !?)