Paul Kienzle wrote:
> On Fri, Sep 07, 2007 at 06:40:55AM -0400, Michael Droettboom wrote:
>> I'd be curious to see a screenshot of what Safari looks like.  It may be a 
>> simple fix on our end.
> 
> See attached.

It turns out this "difference" (I'm not calling it a bug) is visible in 
Inkscape as well.

There seems to be some disagreement about the 'Z' operator on SVG paths 
(which is supposed to close the current path segment).  In Firefox, 'Z' 
doesn't move the reference point for subsequent relative operations, 
whereas in Inkscape (and presumably Safari) it does.  So the delta 
problem is because the inner triangle was being drawn offset outside of 
the outer triangle.  The workaround in matplotlib is to never do a 
relative operation after the 'Z' operator (r3808) and avoid exercising 
this difference.

Unfortunately, the SVG 1.1 and 1.2 specs don't appear to directly 
address this issue (at least it isn't very explicit):

        http://www.w3.org/TR/SVG/paths.html

So it's hard to say who's "to blame" here, but perhaps the spec should 
be clarified.

Cheers,
Mike

-- 
Michael Droettboom
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

Reply via email to