From: David H. <dav...@gm...> - 2011-08-23 14:06:17
|
Hi Mike, Thanks for looking into this. On Mon, Aug 22, 2011 at 5:52 PM, Michael Droettboom <md...@st...> 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 matplotlib are you using? I'm using matplotlib from git dating back to August 3. > What browser > (and version) are you using to interact with the SVG? Chromium (12). > Can you attach the > SVG file (maybe in both working and broken states), so I can tinker with > it? Here are two versions, one working as expected and the other with the glitch. You may want to try moving the "<defs>" 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 enough fix within matplotlib. That would be great ! I'd be glad to contribute an example for the matplotlib gallery if there is an interest. I think the SVG+JS combo has a lot of potential, and matplotlib makes it easy. Cheers, David |