Downgrading matplotlib throws bad key errors in spyder IDE

被刻印的时光 ゝ 提交于 2019-12-14 02:12:20

问题


I am running Python 2.7.3 on a Ubuntu 12.04 LTS distribution. I use spyder 2.9.1 as IDE.

As detailed in another Stackoverflow post of mine, I upgraded matplotlib from 1.1 to 1.5.1 only to find that there are acknowledged clashes between the IDE and matplotlib 1.5.1. I then downgraded matlplotlib from 1.5.1 to 1.4.3, the previously stable version.

I gained back the core functionalities of spyder that went lost with the upgrade. However, now the console throws the following warnings:

Python 2.7.3 (default, Jun 22 2015, 19:33:41) 
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.

Bad key "axes.prop_cycle" on line 2 in
/usr/local/lib/python2.7/dist-packages/matplotlib/mpl-data/stylelib/seaborn-colorblind.mplstyle.
You probably need to get an updated matplotlibrc file from
http://matplotlib.sf.net/_static/matplotlibrc or from the matplotlib source distribution

<tens of these bad key notifications with the same suggestion>

Imported NumPy 1.11.0, SciPy 0.9.0, Matplotlib 1.4.3
Type "scientific" for more details.
>>> 

The file on http://matplotlib.sf.net/_static/matplotlibrc is easily accessible. I have seen that this file is already present in my computer in 5 locations:

me@computer:~$ locate matplotlibrc
/etc/matplotlibrc
/home/me/Downloads/programs/ParaView-4.3.1-Linux-64bit/lib/paraview-4.3/lib/python2.7/site-packages/matplotlib/mpl-data/matplotlibrc
/opt/paraview/ParaView-4.1.0-Linux-64bit/lib/paraview-4.1/lib/python2.7/site-packages/matplotlib/mpl-data/matplotlibrc
/opt/paraview/ParaView-4.3.1-Linux-64bit/lib/paraview-4.3/lib/python2.7/site-packages/matplotlib/mpl-data/matplotlibrc
/usr/local/lib/python2.7/dist-packages/matplotlib/mpl-data/matplotlibrc

The questions are:

  • Is copying and pasting matplotlibrc all that I should do? (Strange that pip didn't bother about that...)
  • If so, should I update all of just some of those 5 occurrences? (The fact that another program, Paraview, uses it seems to complicate the matter...)

Thanks for helping me out.

来源:https://stackoverflow.com/questions/37097838/downgrading-matplotlib-throws-bad-key-errors-in-spyder-ide

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!