From: John Hunter <jdhunter@ac...> - 2005-05-20 16:18:16
>>>>> "John" == John Gill <jng@...> writes:
John> Attached is a patch to collections.py and legend.py to make
John> the auto-legend stuff smarter.
John> A couple of caveats.
John> The new code doesn't makes as much use of C++ -- there might
John> be performance issues for plots with large numbers of
John> points, although I haven't encountered any.
John> I don't think any of my tests include plots with
John> LineCollections, so there is a reasonable chance that code
John> in _auto_legend_data has not been exercised.
John> Other than that, it seems to do the trick.
Thanks John, also added to CVS. I think this could be extremely slow
for very large lines (100k points, for example) but I don't see that
as a real problem because auto placement is not the default for
legends (for precisely this reason).