2014-07-07 3 views
0

가 작동 된 코드의 변화가되지 않았지만, 지금은이 오류를 얻고있다, 나는 그것에 대해 어떻게 해야할지 아무 생각이 없다 FormatterWarning :하기 matplotlib - 고정 폭 글꼴 오류 및

/usr/lib64/python2.7/site-packages/matplotlib/font_manager.py:1224: UserWarning: findfont: Font family ['monospace'] not found. Falling back to Bitstream Vera Sans 
    (prop.get_family(), self.defaultFamily[fontext])) 
/usr/lib/python2.7/site-packages/IPython/core/formatters.py:239: FormatterWarning: Exception in image/png formatter: Locator attempting to generate 20001 ticks from 0.0 to 100.0: exceeds Locator.MAXTICKS 
    FormatterWarning, 
+0

모노 스페이스 글꼴이 아직 설치되어 있습니까? 또한 - 'FormatterWarning'은 잘못된 점을 말하면서 꽤 솔직합니다. – Korem

+0

나는 그것이 빨간 청어라고 생각한다. 정확히 같은 코드는 경고없이 잘 작동했습니다. Btw, 모노 스페이스 글꼴 문제는 어떻게 해결합니까? –

+0

우리는 아웃 코드로 당신을 도울 수 없습니다. – tacaswell

답변

0

이 라인은 나를 위해 트릭을했습니다.

sudo pacman -S dina-font 

여기 글꼴의 웹 페이지입니다. 당신이 리눅스에 있지 않은 경우

http://www.donationcoder.com/Software/Jibz/Dina/index.html

당신이 다운로드하고 해당 폴더에 파일을 저장해야합니다. 이들은 다음과 같습니다 :

# OS Font paths 
MSFolders = \ 
    r'Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders' 

MSFontDirectories = [ 
    r'SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts', 
    r'SOFTWARE\Microsoft\Windows\CurrentVersion\Fonts'] 

X11FontDirectories = [ 
    # an old standard installation point 
    "/usr/X11R6/lib/X11/fonts/TTF/", 
    "/usr/X11/lib/X11/fonts", 
    # here is the new standard location for fonts 
    "/usr/share/fonts/", 
    # documented as a good place to install new fonts 
    "/usr/local/share/fonts/", 
    # common application, not really useful 
    "/usr/lib/openoffice/share/fonts/truetype/", 
    ] 

OSXFontDirectories = [ 
    "/Library/Fonts/", 
    "/Network/Library/Fonts/", 
    "/System/Library/Fonts/", 
    # fonts installed via MacPorts 
    "/opt/local/share/fonts" 
    "" 
]