python - how to change matplotlibrc default directory -




i'm using anaconda , python 3.6 on windows bash. every time want use matplotlib have paste copy of matplotlibrc file working directory otherwise code won't run or plot , warning - /home/computer/anaconda3/lib/python3.6/site-packages/matplotlib/init.py:1022: userwarning: not find rc file;returning defaults

my matplotlibrc file located @ c:\users\user\appdata\local\lxss\home\puter\anaconda3\lib\python3.6\site-packages\matplotlib\mpl-data

i thought fix edit .condarc file , set matplotlibrc in correct directory. tell me how this?

it looks when anaconda or matplotlib installed it's created matplotlibrc file in c:\users\user\appdata\local\lxss\home\puter\anaconda3\lib\py‌​thon3.6\site-package‌​s\matplotlib\mpl-dat‌​a using windows environment. has caused file not recognised in wsl.

to fix create matplotlibrc file in bash or whatever shell you're using. in directory listed above copy contents of created matplotlibrc file new matplotlibrc file. make sure don't create file in windows environment otherwise won't recognised.





wiki

Comments

Popular posts from this blog

kotlin - Out-projected type in generic interface prohibits the use of metod with generic parameter -

Asterisk AGI Python Script to Dialplan does not work -

python - Read npy file directly from S3 StreamingBody -