matplotlib not using matplotlibrc file in IPython

后端 未结 2 555
粉色の甜心
粉色の甜心 2021-01-22 14:07

I recently upgraded from matplotlib v1.5.3 from v2.0.0, but with this change, it seems that matplotlib no longer uses my edited matplotlibrc file when plotting figures. When I o

2条回答
  •  一整个雨季
    2021-01-22 14:36

    In matplotlib 2.0.0, the default location on Linux for the matplotlibrc file has moved from

    ~/.matplotlib/matplotlibrc
    

    to

    ~/.config/matplotlib/matplotlibrc 
    

    Try moving your customised file to there and see if it works. That worked for me when I moved from 1.5.3 to 2.0.0.

    See the docs for more info on how it finds the right matplotlibrc file.

提交回复
热议问题