(x, y, _text)
| 31 | |
| 32 | |
| 33 | def text(x, y, _text): |
| 34 | color= "C1" |
| 35 | if not 0 < x < 1 or not 0 < y < 1: color = "C0" |
| 36 | size = 0.15 |
| 37 | ax.text(x, y, _text, color="white", # bbox={"color": "C1"}, |
| 38 | size="xx-large", weight="bold", ha="center", va="center") |
| 39 | rect = plt.Rectangle((x-size/2, y-size/2), size, size, facecolor=color, |
| 40 | zorder=-10, clip_on=False) |
| 41 | ax.add_patch(rect) |
| 42 | |
| 43 | |
| 44 | def point(x, y): |