"파이썬 matplotlib.matplotlib fname()"의 두 판 사이의 차이

잔글 (봇: 자동으로 텍스트 교체 (-</source> +</syntaxhighlight>, -<source +<syntaxhighlight ))
 
5번째 줄: 5번째 줄:
* matplotlib 설정 파일 위치 얻기
* matplotlib 설정 파일 위치 얻기


<source lang='python' run>
<syntaxhighlight lang='python' run>
import matplotlib
import matplotlib
print( matplotlib.matplotlib_fname() )
print( matplotlib.matplotlib_fname() )
</source>
</syntaxhighlight>


==설정파일 위치==
==설정파일 위치==

2021년 3월 14일 (일) 18:00 기준 최신판

1 개요[ | ]

Python matplotlib.matplotlib_fname()
파이썬 matplotlib.matplotlib_fname()
  • matplotlib 설정 파일 위치 얻기
import matplotlib
print( matplotlib.matplotlib_fname() )

2 설정파일 위치[ | ]

  • 설정파일 위치는 다음의 순서에 따라 결정된다.
    • $PWD/matplotlibrc
    • $MATPLOTLIBRC (단, 디렉토리가 아닌 경우)
    • $MATPLOTLIBRC/matplotlibrc
    • $MPLCONFIGDIR/matplotlibrc
    • 리눅스에서는
      • $XDG_CONFIG_HOME/matplotlib/matplotlibrc ($XDG_CONFIG_HOME이 정의된 경우)
      • 또는 $HOME/.config/matplotlib/matplotlibrc ($XDG_CONFIG_HOME이 정의되지 않은 경우)
    • 다른 플랫폼에서는... $HOME이 정의되어 있다면 $HOME/.matplotlib/matplotlibrc
    • 마지막으로는 $MATPLOTLIBDATA/matplotlibrc이며 항상 있다.

3 같이 보기[ | ]

4 참고[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}