matplotlib を、
前提
OS 、
OS
% sw_vers ProductName: Mac OS X ProductVersion: 10.12.6 BuildVersion: 16G29
python
% python -V Python 2.7.10
何故 upgrade しようと 思ったか
matplotlib.pyplot.show() で、
いい
出力 Warning は
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/matplotlib/collections.py:608: FutureWarning: elementwise comparison failed; returning scalar instead, but in the future will perform elementwise comparison if self._edgecolors_original != 'face':
pip で upgrade を 実施する
とりあえず、
% sudo pip install -U matplotlib
Found existing installation: pyparsing 2.0.1 DEPRECATION: Uninstalling a distutils installed project (pyparsing) has been deprecated and will be removed in a future version. This is due to the fact that uninstalling a distutils project will only partially uninstall the project. Uninstalling pyparsing-2.0.1:
% sudo pip list | grep matplotlib matplotlib (1.3.1)
six
をsudo pip install matplotlib --upgrade --ignore-installed six
matplotlib (2.0.2)
に% pip list | grep matplotlib matplotlib (2.0.2)
Error 自体は
pandas をsix
を
mac os sierra の[Errno 1] Operation not permitted:
が
Font cache を 削除する
upgrade 後に
/Library/Python/2.7/site-packages/matplotlib/font_manager.py:280: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment. 'Matplotlib is building the font cache using fc-list. '
Font が 見つからず、 デフォルトの Font が 使われる
グラフ描画時に
これは、
も
/Library/Python/2.7/site-packages/matplotlib/font_manager.py:1297: UserWarning: findfont: Font family [u'Yu Gothic'] not found. Falling back to DejaVu Sans (prop.get_family(), self.defaultFamily[fontext]))
Error で
以上です。
コメント