I am using the matplotlib library in python to create xy markup graphs. I ran into a problem regarding markers in a legend. I plan two different xy-scatter series; one is a set of xy points forming a curve, and the other is a single xy point.
I would like the legend to show 3 markers for the "curve" and 1 marker for one point. The only way I know how to change the number of legendary markers is to use the "scatter points" argument when declaring a legend. However, this argument sets the number of markers for all episodes in the legend, and I'm not sure how to change each legend entry individually.
Unfortunately, I canโt post photos as a new user, but hopefully this description is enough. Is there a way to set the scatter point values โโindividually for each legend entry using matplotlib?
EDIT: Here are links showing images with different values โโfor the scatter points.
scattering points = 3: http://imgur.com/8ONAT
scatterpoints = 1: http://imgur.com/TFcYV
Hope this makes the problem more clear.
source share