On Thu, Oct 14, 2010 at 7:49 AM, Michael Droettboom <md...@stsci.edu> wrote:
> It looks like the QtSvg module is targeting SVG Tiny 1.2, which does not
> support clipping:
>
> http://doc.qt.nokia.com/4.3/qtsvg.html
>
> SVG Tiny also limits a lot of the CSS styling things that matplotlib
> makes use of -- though those things are probably easier to workaround if
> necessary.
>
> So, it's not broken so much as scoped below the threshold of usefulness ;)
>
> A possible workaround would be to add vector clipping to matplotlib and
> perform it before output. This has the nice side benefit of reducing
> file sizes (in many cases). However, that's a pretty major project to
> get right.
>
>
My only concern about that approach -- if I understand it correctly -- is
that this path clipping would have to be redone at every change in view
limits. Wouldn't that mean that in order to support panning and zooming, we
would need to keep an original copy of the SVG data and then create a
clipped version of the SVG data to post into the QT widget?
Ben Root
------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3.
Spend less time writing and rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel