Patch: correcting legend behavior for missing handles

Hi there,

in the attachment, find a patch for the legend to behave correctly when some
of the handles are set to None. (In which case the corresponding space is
just left empty.)

Without this patch, everything is first set up correctly, but then the
_update_positions routine shifts the items in the legend box around


matplotlib-legend-missing-handle.diff (1.35 KB)


_________________________________________Norbert Nemec
         Bernhardstr. 2 ... D-93053 Regensburg
     Tel: 0941 - 2009638 ... Mobil: 0179 - 7475199
           eMail: <Norbert@...160...>