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
>>>> Matplotlib-users@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>>>   
> 

-------------------------------------------------------------------------
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
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to