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

(새 문서: ==개요== {{DISPLAYTITLE:파이썬 matplotlib.matplotlib_fname()}} ;Python matplotlib.matplotlib_fname() ;파이썬 matplotlib.matplotlib_fname() <source lang='python' run> import m...)
 
잔글 (봇: 자동으로 텍스트 교체 (-</source> +</syntaxhighlight>, -<source +<syntaxhighlight ))
 
(다른 사용자 한 명의 중간 판 3개는 보이지 않습니다)
3번째 줄: 3번째 줄:
;Python matplotlib.matplotlib_fname()
;Python matplotlib.matplotlib_fname()
;파이썬 matplotlib.matplotlib_fname()
;파이썬 matplotlib.matplotlib_fname()
* matplotlib 설정 파일 위치 얻기


<source lang='python' run>
<syntaxhighlight lang='python' run>
import matplotlib
import matplotlib
print( matplotlib.matplotlib_fname() )
print( matplotlib.matplotlib_fname() )
</source>
</syntaxhighlight>
 
==설정파일 위치==
* 설정파일 위치는 다음의 순서에 따라 결정된다.
** [[$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이며 항상 있다.


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

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