|
From: Kaushik G. <kg...@um...> - 2008-04-22 01:38:10
Attachments:
eraseme.svg
|
Hi Everyone,
I'm using matplotlib on mac (matplotlib-0.91.2-py2.5-macosx-10.3-fat.egg) .
On windows svg export would have very sensible text grouping. For example an
xlabel('Time') when saved to svg results in one text object 'Time'.
In the mac version this is saved as 5 separate objects, not text. A little
puzzling, and inconvenient.
Is there an option somewhere to change this behavior?
I'm attaching an example svg.
Thanks!
-Kaushik
|
|
From: Michael D. <md...@st...> - 2008-04-22 12:21:27
|
The rcParam svg.embed_chars controls this behavior. I would assume it
is set differently on your Windows and Mac boxes.
When it is True, rather than outputting <text> blocks, it embeds the
characters as outlines. This means that the fonts do not have to be
installed just to view the SVG correctly. The upside is better
"portability" of the file. The downside is that the text can be
impossible to edit in tools such as Inkscape or Illustrator. (Using SVG
fonts would have been better, but there isn't much support for them in
the wild yet).
When it is False, regular text blocks are used, but things will look
strange (particularly with math text) if the correct fonts are not
installed on the viewer's machine.
Hope that helps.
Mike
Kaushik Ghose wrote:
> Hi Everyone,
>
> I'm using matplotlib on mac
> (matplotlib-0.91.2-py2.5-macosx-10.3-fat.egg) .
>
> On windows svg export would have very sensible text grouping. For
> example an xlabel('Time') when saved to svg results in one text object
> 'Time'.
>
> In the mac version this is saved as 5 separate objects, not text. A
> little puzzling, and inconvenient.
>
> Is there an option somewhere to change this behavior?
>
> I'm attaching an example svg.
>
> Thanks!
> -Kaushik
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
> Don't miss this year's exciting event. There's still time to save $100.
> Use priority code J8TL2D2.
> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
> ------------------------------------------------------------------------
>
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
--
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA
|
|
From: Kaushik G. <kg...@um...> - 2008-04-22 14:11:11
|
Hi Mike, Thanks for the tip. I tried it, but I get the following message: Bad key "svg.embed_chars" on line 294 in /Users/kghose/.matplotlib/matplotlibrc. You probably need to get an updated matplotlibrc file from http://matplotlib.sf.net/matplotlibrc or from the matplotlib source distribution The text is still exported as path. Thanks -Kaushik Michael Droettboom wrote: > The rcParam svg.embed_chars controls this behavior. I would assume it > is set differently on your Windows and Mac boxes. > > When it is True, rather than outputting <text> blocks, it embeds the > characters as outlines. This means that the fonts do not have to be > installed just to view the SVG correctly. The upside is better > "portability" of the file. The downside is that the text can be > impossible to edit in tools such as Inkscape or Illustrator. (Using SVG > fonts would have been better, but there isn't much support for them in > the wild yet). > > When it is False, regular text blocks are used, but things will look > strange (particularly with math text) if the correct fonts are not > installed on the viewer's machine. > > Hope that helps. > > Mike > > Kaushik Ghose wrote: >> Hi Everyone, >> >> I'm using matplotlib on mac >> (matplotlib-0.91.2-py2.5-macosx-10.3-fat.egg) . >> >> On windows svg export would have very sensible text grouping. For >> example an xlabel('Time') when saved to svg results in one text object >> 'Time'. >> >> In the mac version this is saved as 5 separate objects, not text. A >> little puzzling, and inconvenient. >> >> Is there an option somewhere to change this behavior? >> >> I'm attaching an example svg. >> >> Thanks! >> -Kaushik >> ------------------------------------------------------------------------ >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference >> Don't miss this year's exciting event. There's still time to save >> $100. Use priority code J8TL2D2. >> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone >> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> Matplotlib-users mailing list >> Mat...@li... >> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >> > |
|
From: Michael D. <md...@st...> - 2008-04-22 14:22:09
|
Sorry. I mistyped. It's "svg.embed_char_paths" Cheers, Mike Kaushik Ghose wrote: > Hi Mike, > > Thanks for the tip. I tried it, but I get the following message: > > Bad key "svg.embed_chars" on line 294 in > /Users/kghose/.matplotlib/matplotlibrc. > You probably need to get an updated matplotlibrc file from > http://matplotlib.sf.net/matplotlibrc or from the matplotlib source > distribution > > The text is still exported as path. > > Thanks > -Kaushik > > > Michael Droettboom wrote: >> The rcParam svg.embed_chars controls this behavior. I would assume >> it is set differently on your Windows and Mac boxes. >> >> When it is True, rather than outputting <text> blocks, it embeds the >> characters as outlines. This means that the fonts do not have to be >> installed just to view the SVG correctly. The upside is better >> "portability" of the file. The downside is that the text can be >> impossible to edit in tools such as Inkscape or Illustrator. (Using >> SVG fonts would have been better, but there isn't much support for >> them in the wild yet). >> >> When it is False, regular text blocks are used, but things will look >> strange (particularly with math text) if the correct fonts are not >> installed on the viewer's machine. >> >> Hope that helps. >> >> Mike >> >> Kaushik Ghose wrote: >>> Hi Everyone, >>> >>> I'm using matplotlib on mac >>> (matplotlib-0.91.2-py2.5-macosx-10.3-fat.egg) . >>> >>> On windows svg export would have very sensible text grouping. For >>> example an xlabel('Time') when saved to svg results in one text >>> object 'Time'. >>> >>> In the mac version this is saved as 5 separate objects, not text. A >>> little puzzling, and inconvenient. >>> >>> Is there an option somewhere to change this behavior? >>> >>> I'm attaching an example svg. >>> >>> Thanks! >>> -Kaushik >>> ------------------------------------------------------------------------ >>> >>> >>> ------------------------------------------------------------------------- >>> >>> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference >>> Don't miss this year's exciting event. There's still time to save >>> $100. Use priority code J8TL2D2. >>> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone >>> >>> ------------------------------------------------------------------------ >>> >>> >>> _______________________________________________ >>> Matplotlib-users mailing list >>> Mat...@li... >>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >>> >> -- Michael Droettboom Science Software Branch Operations and Engineering Division Space Telescope Science Institute Operated by AURA for NASA |
|
From: Kaushik G. <kau...@gm...> - 2008-04-22 14:42:40
|
Thanks, that worked! Small note, the example matplotlibrc file on the website (http://matplotlib.sourceforge.net/matplotlibrc) as well as the one in the most recent mac OS egg has "svg.embed_chars". Thanks -Kaushik Michael Droettboom wrote: > Sorry. I mistyped. It's "svg.embed_char_paths" > > Cheers, > Mike > > Kaushik Ghose wrote: >> Hi Mike, >> >> Thanks for the tip. I tried it, but I get the following message: >> >> Bad key "svg.embed_chars" on line 294 in >> /Users/kghose/.matplotlib/matplotlibrc. >> You probably need to get an updated matplotlibrc file from >> http://matplotlib.sf.net/matplotlibrc or from the matplotlib source >> distribution >> >> The text is still exported as path. >> >> Thanks >> -Kaushik >> >> >> Michael Droettboom wrote: >>> The rcParam svg.embed_chars controls this behavior. I would assume >>> it is set differently on your Windows and Mac boxes. >>> >>> When it is True, rather than outputting <text> blocks, it embeds the >>> characters as outlines. This means that the fonts do not have to be >>> installed just to view the SVG correctly. The upside is better >>> "portability" of the file. The downside is that the text can be >>> impossible to edit in tools such as Inkscape or Illustrator. (Using >>> SVG fonts would have been better, but there isn't much support for >>> them in the wild yet). >>> >>> When it is False, regular text blocks are used, but things will look >>> strange (particularly with math text) if the correct fonts are not >>> installed on the viewer's machine. >>> >>> Hope that helps. >>> >>> Mike >>> >>> Kaushik Ghose wrote: >>>> Hi Everyone, >>>> >>>> I'm using matplotlib on mac >>>> (matplotlib-0.91.2-py2.5-macosx-10.3-fat.egg) . >>>> >>>> On windows svg export would have very sensible text grouping. For >>>> example an xlabel('Time') when saved to svg results in one text >>>> object 'Time'. >>>> >>>> In the mac version this is saved as 5 separate objects, not text. A >>>> little puzzling, and inconvenient. >>>> >>>> Is there an option somewhere to change this behavior? >>>> >>>> I'm attaching an example svg. >>>> >>>> Thanks! >>>> -Kaushik >>>> ------------------------------------------------------------------------ >>>> >>>> >>>> ------------------------------------------------------------------------- >>>> >>>> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference >>>> Don't miss this year's exciting event. There's still time to save >>>> $100. Use priority code J8TL2D2. >>>> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone >>>> >>>> ------------------------------------------------------------------------ >>>> >>>> >>>> _______________________________________________ >>>> Matplotlib-users mailing list >>>> Mat...@li... >>>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >>>> > |
|
From: Michael D. <md...@st...> - 2008-04-22 14:57:09
|
Yes. I'll fix that. Thanks. Kaushik Ghose wrote: > Thanks, that worked! > > Small note, the example matplotlibrc file on the website > (http://matplotlib.sourceforge.net/matplotlibrc) as well as the one in > the most recent mac OS egg has "svg.embed_chars". > > Thanks > -Kaushik > > Michael Droettboom wrote: >> Sorry. I mistyped. It's "svg.embed_char_paths" >> >> Cheers, >> Mike >> >> Kaushik Ghose wrote: >>> Hi Mike, >>> >>> Thanks for the tip. I tried it, but I get the following message: >>> >>> Bad key "svg.embed_chars" on line 294 in >>> /Users/kghose/.matplotlib/matplotlibrc. >>> You probably need to get an updated matplotlibrc file from >>> http://matplotlib.sf.net/matplotlibrc or from the matplotlib source >>> distribution >>> >>> The text is still exported as path. >>> >>> Thanks >>> -Kaushik >>> >>> >>> Michael Droettboom wrote: >>>> The rcParam svg.embed_chars controls this behavior. I would assume >>>> it is set differently on your Windows and Mac boxes. >>>> >>>> When it is True, rather than outputting <text> blocks, it embeds >>>> the characters as outlines. This means that the fonts do not have >>>> to be installed just to view the SVG correctly. The upside is >>>> better "portability" of the file. The downside is that the text >>>> can be impossible to edit in tools such as Inkscape or >>>> Illustrator. (Using SVG fonts would have been better, but there >>>> isn't much support for them in the wild yet). >>>> >>>> When it is False, regular text blocks are used, but things will >>>> look strange (particularly with math text) if the correct fonts are >>>> not installed on the viewer's machine. >>>> >>>> Hope that helps. >>>> >>>> Mike >>>> >>>> Kaushik Ghose wrote: >>>>> Hi Everyone, >>>>> >>>>> I'm using matplotlib on mac >>>>> (matplotlib-0.91.2-py2.5-macosx-10.3-fat.egg) . >>>>> >>>>> On windows svg export would have very sensible text grouping. For >>>>> example an xlabel('Time') when saved to svg results in one text >>>>> object 'Time'. >>>>> >>>>> In the mac version this is saved as 5 separate objects, not text. >>>>> A little puzzling, and inconvenient. >>>>> >>>>> Is there an option somewhere to change this behavior? >>>>> >>>>> I'm attaching an example svg. >>>>> >>>>> Thanks! >>>>> -Kaushik >>>>> ------------------------------------------------------------------------ >>>>> >>>>> >>>>> ------------------------------------------------------------------------- >>>>> >>>>> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference >>>>> Don't miss this year's exciting event. There's still time to save >>>>> $100. Use priority code J8TL2D2. >>>>> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone >>>>> >>>>> ------------------------------------------------------------------------ >>>>> >>>>> >>>>> _______________________________________________ >>>>> Matplotlib-users mailing list >>>>> Mat...@li... >>>>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >>>>> >> -- Michael Droettboom Science Software Branch Operations and Engineering Division Space Telescope Science Institute Operated by AURA for NASA |