legend marker clipping

Hello,

legends outside axes display only line without markers.
Somebody forgot to unset clipping.

Bye

Jozef Vesely

--- matplotlib-0.98.3.orig/lib/matplotlib/legend.py 2008-08-03 20:15:03.000000000 +0200
+++ matplotlib-0.98.3/lib/matplotlib/legend.py 2008-11-15 13:41:09.000000000 +0100
@@ -270,6 +270,8 @@
                 legline_marker.update_from(handle)
                 legline_marker.set_linestyle('None')
                 self._set_artist_props(legline_marker)
+ legline_marker.set_clip_box(None)
+ legline_marker.set_clip_path(None)
                 # we don't want to add this to the return list because
                 # the texts and handles are assumed to be in one-to-one
                 # correpondence.

It appears Eric already fixed this in svn:

  r6127 | efiring | 2008-09-27 19:44:08 -0500 (Sat, 27 Sep 2008) | 4 lines

  Enhancement to Axes.spy, and bugfixes:
  figlegend was not plotting markers;
  plot could not handle empty input arrays.

So please give svn a test if you have a chance. Thanks for the patch.

JDH

···

On Sat, Nov 15, 2008 at 6:50 AM, Jozef Vesely <vesely@...670...> wrote:

legends outside axes display only line without markers.
Somebody forgot to unset clipping.