SourceForge logo
SourceForge logo
Menu

matplotlib-devel

From: Neal B. <ndb...@gm...> - 2013年12月31日 16:59:42
If I rely on the system version of matplotlib
python-matplotlib-1.3.0-1.fc20.x86_64
stix fonts are not found
/usr/lib64/python2.7/site-packages/matplotlib/font_manager.py:1236: UserWarning: 
findfont: Font family ['STIXGeneral'] not found. Falling back to Bitstream Vera 
Sans
 (prop.get_family(), self.defaultFamily[fontext]))
No I do:
pip install --user --up matplotlib
And after rm ~/.matplotlib/fontList.cache stix fonts are found.
Now I look in ~/.matplotlib/fontList.cache and I find
/home/nbecker/.local/lib/python2.7/site-packages/matplotlib/mpl-
data/fonts/ttf/STIXGeneralBol.ttf'
So it seems it now works because the font is now installed.
But I already had:
rpm -qa '*stix*'
stix-math-fonts-1.1.0-5.fc20.noarch
texlive-stix-svn29803.1.0-3.fc20.noarch
stix-fonts-1.1.0-5.fc20.noarch
rpm -ql texlive-stix
/usr/share/texlive/texmf-dist/fonts/opentype/public/stix/STIXGeneral.otf
/usr/share/texlive/texmf-dist/fonts/opentype/public/stix/STIXGeneralBol.otf
So it seems, matplotlib requires .ttf format fonts? Or perhaps the system 
didn't know how to find the fonts from texlive-stix package?
From: Michael D. <md...@st...> - 2013年12月31日 18:21:46
Yes. matplotlib can not read the otf format fonts that are generally 
shipped as part of the STIX font packages. You need the ones that come 
with matplotlib.
Mike
On 12/31/2013 11:59 AM, Neal Becker wrote:
> If I rely on the system version of matplotlib
>
> python-matplotlib-1.3.0-1.fc20.x86_64
>
> stix fonts are not found
>
> /usr/lib64/python2.7/site-packages/matplotlib/font_manager.py:1236: UserWarning:
> findfont: Font family ['STIXGeneral'] not found. Falling back to Bitstream Vera
> Sans
> (prop.get_family(), self.defaultFamily[fontext]))
>
> No I do:
>
> pip install --user --up matplotlib
>
> And after rm ~/.matplotlib/fontList.cache stix fonts are found.
>
> Now I look in ~/.matplotlib/fontList.cache and I find
>
> /home/nbecker/.local/lib/python2.7/site-packages/matplotlib/mpl-
> data/fonts/ttf/STIXGeneralBol.ttf'
>
> So it seems it now works because the font is now installed.
>
> But I already had:
>
> rpm -qa '*stix*'
> stix-math-fonts-1.1.0-5.fc20.noarch
> texlive-stix-svn29803.1.0-3.fc20.noarch
> stix-fonts-1.1.0-5.fc20.noarch
>
> rpm -ql texlive-stix
> /usr/share/texlive/texmf-dist/fonts/opentype/public/stix/STIXGeneral.otf
> /usr/share/texlive/texmf-dist/fonts/opentype/public/stix/STIXGeneralBol.otf
>
> So it seems, matplotlib requires .ttf format fonts? Or perhaps the system
> didn't know how to find the fonts from texlive-stix package?
>
>
> ------------------------------------------------------------------------------
> Rapidly troubleshoot problems before they affect your business. Most IT
> organizations don't have a clear picture of how application performance
> affects their revenue. With AppDynamics, you get 100% visibility into your
> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
> _______________________________________________
> Matplotlib-devel mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
-- 
 _
|\/|o _|_ _. _ | | \.__ __|__|_|_ _ _ ._ _
| ||(_| |(_|(/_| |_/|(_)(/_|_ |_|_)(_)(_)| | |
http://www.droettboom.com
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /