A separate legend box for the markers only?

I have version 1.3.1.

I had to modify the example to be:
{{{
import matplotlib.lines as mlines
import matplotlib.pyplot as plt
import matplotlib
print matplotlib.__version__

blue_line = mlines.Line2D([], [], color='blue', marker='*',
                          markersize=15, label='Blue stars')
plt.plot([],[])
plt.legend([blue_line],['Blue stars'])
plt.draw()
plt.show()
}}}

Then the legend showed up correctly with stars.

-Sterling

···

On Sep 12, 2014, at 11:58AM, ConcreteVitamin wrote:

I tried the blue stars [1] example here, but the star markers are not
showing up in my second legend box. Only the blue line is there. Is
there a way to make only the markers show up?

http://matplotlib.org/users/legend_guide.html#creating-artists-specifically-for-adding-to-the-legend-aka-proxy-artists

On Fri, Sep 12, 2014 at 11:29 AM, Sterling Smith <smithsp@...3304...> wrote:

Try googling "proxy artist", which leads to this page:
http://matplotlib.org/users/legend_guide.html

-Sterling

On Sep 12, 2014, at 11:01AM, ConcreteVitamin wrote:

Accidentally hit send, sorry.. Completed email:

I have a graph that looks like this [1], in which each line has
different markers for the same number of points. I'd like to add a
separate "legend box" (like the one already in the graph) for the
markers only:

<circle>: description for circle
<right triangle>: description for right triangle
... and so on...

How can I do this? After googling a bit I couldn't find an answer. Thanks a lot!

On Fri, Sep 12, 2014 at 11:00 AM, ConcreteVitamin >>> <concretevitamin@...287...> wrote:

Hi matplotlib-users@,

I have a graph that looks like this [1], in which each line has
different markers for the same number of points. I'd like to add a
separate "legend box" (like the one already in the graph) for the
markers only:

<circle>: description for circle
<right triangle>: description for right triangle

[1] http://imgur.com/tmFpix1

------------------------------------------------------------------------------
Want excitement?
Manually upgrade your production database.
When you want reliability, choose Perforce
Perforce version control. Predictably reliable.
http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users