Re: [matplotlib-devel] Adding interactivity to an histogram in SVG

2011-08-23 Thread David Huard
Mike, I forked your branch and created this one which includes the revised histogram example. https://github.com/huard/matplotlib/tree/interactive_svg Cheers David On Tue, Aug 23, 2011 at 1:37 PM, David Huard wrote: > On Tue, Aug 23, 2011 at 11:29 AM, Michael Droettboom wrote: >> On 08/23/20

Re: [matplotlib-devel] Adding interactivity to an histogram in SVG

2011-08-23 Thread David Huard
On Tue, Aug 23, 2011 at 11:29 AM, Michael Droettboom wrote: > On 08/23/2011 10:06 AM, David Huard wrote: >> >> You may want to try moving the "" containing the clipPath up a >>> level, so it is a peer with the histogram rectangles. >> Yep, that works. >> >>> That's just a stab in >>> the dark.  If

Re: [matplotlib-devel] Adding interactivity to an histogram in SVG

2011-08-23 Thread Michael Droettboom
On 08/23/2011 10:06 AM, David Huard wrote: > > You may want to try moving the "" containing the clipPath up a >> level, so it is a peer with the histogram rectangles. > Yep, that works. > >> That's just a stab in >> the dark. If that turns out that makes the difference, that should be an >> easy e

Re: [matplotlib-devel] Adding interactivity to an histogram in SVG

2011-08-23 Thread David Huard
Hi Mike, Thanks for looking into this. On Mon, Aug 22, 2011 at 5:52 PM, Michael Droettboom wrote: > I'm tinkering with your example a little bit, but clicking on the legend > items doesn't seem to do anything whether it contains the offending clipPath > snippet or not. What version of matplotli

Re: [matplotlib-devel] Adding interactivity to an histogram in SVG

2011-08-22 Thread Michael Droettboom
I'm tinkering with your example a little bit, but clicking on the legend items doesn't seem to do anything whether it contains the offending clipPath snippet or not. What version of matplotlib are you using? What browser (and version) are you using to interact with the SVG? Can you attach th

[matplotlib-devel] Adding interactivity to an histogram in SVG

2011-08-22 Thread David Huard
Hi, I'm trying to create an SVG figure that will show or hide the bars of a histogram when clicking on the element in the legend. I got to the point where it almost works... I'm including the script so that others can play with it, but from what I understand, the problem is that the first histogr