On 09/17/2010 08:57 PM, Joey Richards wrote:
> Hello.  First, let me apologize if this has been covered---I tried to search 
> the mailing list archives but was unable to get that to work (even queries 
> that should have returned many hits were returning nothing).
>
> When I plot with the MacOSX backend using a serif font, the negative signs on 
> the axis labels show up as the "missing glyph" open squares rather than minus 
> signs.
>
> Things that work around the problem:
> - disabling the unicode minus sign via axes.unicode_minus: False in the 
> matplotlibrc file (though this obviously gives a hyphen instead of a true 
> minus sign)
> - switching to a sans-serif font
> - switching to TkAgg or wxAgg backends
> - using the text.usetex option
>
> Things that don't work:
> - switching to a different serif font (at least among Times, Times New Roman, 
> and Bitstream Vera Serif)
>    
FWIW, Bitstream Vera Serif (at least the one distributed with 
matplotlib) does have the minus sign (at codepoint U2212), so I don't 
think it's the fault of the font.  I'm on Linux and don't have Apple's 
Times or Times New Roman, so I can't verify those.

This sounds like a bug in the Mac OS-X backend in how it's handling 
Unicode characters -- though that doesn't explain why the sans-serif 
font is working.

Do you have any customizations related to fonts in your matplotlibrc file?

Mike

-- 
Michael Droettboom
Science Software Branch
Space Telescope Science Institute
Baltimore, Maryland, USA


------------------------------------------------------------------------------
Virtualization is moving to the mainstream and overtaking non-virtualized
environment for deploying applications. Does it make network security 
easier or more difficult to achieve? Read this whitepaper to separate the 
two and get a better understanding.
http://p.sf.net/sfu/hp-phase2-d2d
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to