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

잔글 (봇: 자동으로 텍스트 교체 (-</source> +</syntaxhighlight>, -<source +<syntaxhighlight ))
 
(다른 사용자 한 명의 중간 판 2개는 보이지 않습니다)
4번째 줄: 4번째 줄:
;파이썬 matplotlib.matplotlib_fname()
;파이썬 matplotlib.matplotlib_fname()
* matplotlib 설정 파일 위치 얻기
* matplotlib 설정 파일 위치 얻기
* 파일 위치는 다음의 순서에 따라 결정된다.
 
<syntaxhighlight lang='python' run>
import matplotlib
print( matplotlib.matplotlib_fname() )
</syntaxhighlight>
 
==설정파일 위치==
* 설정파일 위치는 다음의 순서에 따라 결정된다.
** [[$PWD]]/matplotlibrc
** [[$PWD]]/matplotlibrc
** [[$MATPLOTLIBRC]] (단, 디렉토리가 아닌 경우)
** [[$MATPLOTLIBRC]] (단, 디렉토리가 아닌 경우)
14번째 줄: 21번째 줄:
** 다른 플랫폼에서는... [[$HOME]]이 정의되어 있다면 $HOME/.matplotlib/matplotlibrc
** 다른 플랫폼에서는... [[$HOME]]이 정의되어 있다면 $HOME/.matplotlib/matplotlibrc
** 마지막으로는 [[$MATPLOTLIBDATA]]/matplotlibrc이며 항상 있다.
** 마지막으로는 [[$MATPLOTLIBDATA]]/matplotlibrc이며 항상 있다.
<source lang='python' run>
import matplotlib
print( matplotlib.matplotlib_fname() )
</source>


==같이 보기==
==같이 보기==

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 }}