>>> [(f.name, f.fname) for f in fm.fontManager.ttflist if 'D2Coding' in f.name]
[('D2Coding', '/Users/jeongdaye/Library/Fonts/D2Coding-Ver1.3.2-20180524-all.ttc')]
$ vim /Users/jeongdaye/.pyenv/versions/pandas/lib/python3.7/site-packages/matplotlib/mpl-data/matplotlibrc
##
## Note that font.size controls default text sizes. To configure
## special text sizes tick labels, axes, labels, title, etc, see the rc
## settings for axes and ticks. Special text sizes can be defined
## relative to font.size, using the following values: xx-small, x-small,
## small, medium, large, x-large, xx-large, larger, or smaller
font.family : D2Coding
#font.style : normal
#font.variant : normal
#font.weight : normal
#font.stretch : normal
#font.size : 10.0
plt.annotate('',
xy=(x1,y1), # 화살표 머리 부분
xytext=(x2,y2), # 화살표 꼬리 부분
xycoords='data', # 좌표체계
arrowprops=() # 화살표 서식
)
plt.annotate('텍스트', # 텍스트 입력
xy=(x1,y1), # 텍스트 위치 기준점
rotation=n, # 텍스트 회전 각도
va='baseline', # 텍스트 상하 정렬
ha='center', # 텍스트 좌우 정렬
fontsize=n, # 텍스트 크기
)
plt.ylim(50000, 800000) # y축 범위 지정
# 화살표 그리기(주석)
plt.annotate('',
xy=(20, 620000),
xytext=(2,290000),
xycoords='data',
arrowprops=dict(arrowstyle='->', color='skyblue',lw=5),
)
plt.annotate('',
xy=(47, 450000),
xytext=(30,580000),
xycoords='data',
arrowprops=dict(arrowstyle='->', color='olive',lw=5),
)
# 텍스트 표시(주석)
plt.annotate('인구 이동 증가(1970-1995)', # 텍스트 입력
xy=(10,450000), # 텍스트 위치 기준점
rotation=25, # 텍스트 회전 각도
va='baseline', # 텍스트 상하 정렬
ha='center', # 텍스트 좌우 정렬
fontsize=15, # 텍스트 크기
)
plt.annotate('인구 이동 감소(1995-2017)', # 텍스트 입력
xy=(40,560000), # 텍스트 위치 기준점
rotation=-11, # 텍스트 회전 각도
va='baseline', # 텍스트 상하 정렬
ha='center', # 텍스트 좌우 정렬
fontsize=15, # 텍스트 크기
)
plt.show()