On Thu, Oct 30, 2008 at 8:10 AM, Michael Droettboom <[EMAIL PROTECTED]> wrote:
> In the specific case of bar(), one may still be forced to manually set > urls on each Rectangle if one wants those urls to be different. But > this is no different than the current situation wrt facecolor or any > other attribute, since bar is not written on top of Collection. better yet would be to replace the list of rectangles with a patch collection, do the same for pie, etc. Then a single URL on the collection would apply to the batch. This would break a fair amount of code, but we might be able to minimize the pain by providing an iter interface and a getitem interface to the collection, which warns and does the right thing. So users who did # bars was a list of Rectangles, now it is a PatchCollection for bar in bars: bar.set_facecolor('red') would get working code and a warning telling them to just do bars.set_facecolors instead. And, yes, the example is *very cool* JDH ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel