Re: [matplotlib-devel] svg fonts and mathtext

2007-09-07 Thread Michael Droettboom
Paul Kienzle wrote: Firefox renders the dashed grid lines as solid, so neither is perfect. Turns out that's a matplotlib bug. Fixed in r3804. SVG is not quite ready for prime time. I agree, it's probably not as far along in the details as Ps and Pdf. An alternative is to use the Cairo

Re: [matplotlib-devel] svg fonts and mathtext

2007-09-07 Thread Michael Droettboom
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. As for file sizes, the SVG spec makes an informational recommendation to allow

Re: [matplotlib-devel] svg fonts and mathtext

2007-09-07 Thread Michael Droettboom
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.

Re: [matplotlib-devel] svg fonts and mathtext

2007-09-07 Thread Michael Droettboom
I'd be curious to see a screenshot of what Safari looks like. It may be a simple fix on our end. As for file sizes, the SVG spec makes an informational recommendation to allow gzip-compressed SVG files. So some tools support commpression (Inkscape), and others don't (Firefox). Hopefully

Re: [matplotlib-devel] svg fonts and mathtext

2007-09-07 Thread Paul Kienzle
On Fri, Sep 07, 2007 at 12:09:01PM -0400, Michael Droettboom wrote: Paul Kienzle wrote: I was going to check if this also fixed the dot on the 'i' in sin as well as the equals sign, FWIW, it did for me in Inkscape. And for me in Safari. Note: Adobe SVGViewer doesn't see the embedded

Re: [matplotlib-devel] svg fonts and mathtext

2007-09-07 Thread John Hunter
On 9/7/07, Michael Droettboom [EMAIL PROTECTED] wrote: Embedding characters increased the size of the svg file for this example from 12k to 42k but will decrease tech support by a lot, so its probably worth making it the default. If I hear no objections on this list, I'll go ahead and do

Re: [matplotlib-devel] svg fonts and mathtext

2007-09-07 Thread Michael Droettboom
Paul Kienzle wrote: I was going to check if this also fixed the dot on the 'i' in sin as well as the equals sign, FWIW, it did for me in Inkscape. but I get the following: File /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/mathtext.py, line

Re: [matplotlib-devel] svg fonts and mathtext

2007-09-07 Thread Paul Kienzle
On Fri, Sep 07, 2007 at 10:31:13AM -0400, Michael Droettboom wrote: 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. As for file

Re: [matplotlib-devel] svg fonts and mathtext

2007-09-07 Thread william ratcliff
Maybe I'm doing something wrong, but is there support for \AA {the angstrom} symbol within mathtext for any of the backends? If not, would it be difficult to add? Thanks, William On 9/7/07, Paul Kienzle [EMAIL PROTECTED] wrote: On Fri, Sep 07, 2007 at 03:09:10PM -0400, Michael Droettboom

Re: [matplotlib-devel] svg fonts and mathtext

2007-09-07 Thread william ratcliff
\angstrom also does not work. Thanks, William On 9/7/07, william ratcliff [EMAIL PROTECTED] wrote: Maybe I'm doing something wrong, but is there support for \AA {the angstrom} symbol within mathtext for any of the backends? If not, would it be difficult to add? Thanks, William On

Re: [matplotlib-devel] svg fonts and mathtext

2007-09-07 Thread Michael Droettboom
Sorry -- that used to work, but fell through the cracks in the recent mathtext rewrite. It shouldn't be difficult to add back in. I'll let you know when that's done. Cheers, Mike william ratcliff wrote: Maybe I'm doing something wrong, but is there support for \AA {the angstrom} symbol

Re: [matplotlib-devel] svg fonts and mathtext

2007-09-07 Thread Michael Droettboom
Paul Kienzle wrote: On Fri, Sep 07, 2007 at 03:09:10PM -0400, Michael Droettboom wrote: Paul Kienzle wrote: On Fri, Sep 07, 2007 at 12:09:01PM -0400, Michael Droettboom wrote: Paul Kienzle wrote: Note: Adobe SVGViewer doesn't see the embedded fonts, but it works if I have the fonts

Re: [matplotlib-devel] svg fonts and mathtext

2007-09-07 Thread Michael Droettboom
As of r3815, you can do \AA in a mathtext expression. It would be very easy to support both \angstrom and \AA, but in the interests of trying to be as LaTeX-like as possible, I think we should just do \AA, though IMHO \angstrom is easier to remember. I couldn't find references anywhere to

Re: [matplotlib-devel] svg fonts and mathtext

2007-09-07 Thread Jouni K . Seppänen
Michael Droettboom [EMAIL PROTECTED] writes: I couldn't find references anywhere to \angstrom being a real command in LaTeX (and it doesn't work by default on my LaTeX installation when I tried it.) But I may just not be Googling right. If you can find a reference, I'm happy to make the

Re: [matplotlib-devel] svg fonts and mathtext

2007-09-07 Thread Paul Kienzle
On Fri, Sep 07, 2007 at 04:04:28PM -0400, Michael Droettboom wrote: Paul Kienzle wrote: It looks the same as the version without embedded fonts, which is that it chooses some incorrect default font with the wrong character codes as I showed earlier. That's very surprising, since when the