- Matplotlib에서 Text
- Text Properties
- 추가 Text API
시각화에서 Text 사용 이유
하지만 Text를 과하게 사용한다면 이해를 방해할 수도 있다

| pyplot API | Object-oriented API | description | 
|---|---|---|
| suptitle | suptitle | figure 제목 | 
| title | set_title | ax subplot 제목 | 
| xlabel | set_xlabel | x축 label | 
| ylabel | set_ylabel | y축 label | 
| figtext | text | figure text | 
| text | text | Axes text | 
| annoatate | annotate | Axes annotation with arrow | 


출처 : https://matplotlib.org/stable/gallery/text_labels_and_annotations/fonts_demo.html
ax.text(x=0.5, y=0.5, s='Text\nis Important',
        fontsize=20, # 글씨 크기
        fontweight='bold', # 두께
        fontfamily='serif', # 글씨체
       )
ax.text(x=0.5, y=0.5, s='Text\nis Important',
        fontsize=20, # 크기
        fontweight='bold', # 두께
        fontfamily='serif', # 글씨체
        color='royalblue',# 글씨 색깔
        linespacing=2, # 줄간격
        backgroundcolor='lightgray', # 배경색
        alpha=0.5 # 투명도
       )
ax.text(x=0.5, y=0.5, s='Text\nis Important',
        fontsize=20,
        fontweight='bold',
        fontfamily='serif',
        color='royalblue',
        linespacing=2,
        va='center', # top, bottom, center
        ha='center', # left, right, center
        rotation='horizontal' # horizontal, vertical 혹은 각도
       )

출처 : https://matplotlib.org/stable/gallery/shapes_and_collections/fancybox_demo.html
ax.text(x=0.5, y=0.5, s='Text\nis Important',
        fontsize=20,
        fontweight='bold',
        fontfamily='serif',
        color='black',
        linespacing=2,
        va='center', # top, bottom, center
        ha='center', # left, right, center
        rotation='horizontal', # horizontal, vertical 혹은 각도
        bbox=dict(boxstyle='round', facecolor='wheat', ec = 'blue' ,
                  pad = 1, alpha=0.4) # background와 비슷
       )


