Place a label at the center of an Axes, and remove the axis ticks.
(ax, text)
| 12 | |
| 13 | |
| 14 | def label_axes(ax, text): |
| 15 | """Place a label at the center of an Axes, and remove the axis ticks.""" |
| 16 | ax.text(.5, .5, text, transform=ax.transAxes, |
| 17 | horizontalalignment="center", verticalalignment="center") |
| 18 | ax.tick_params(bottom=False, labelbottom=False, |
| 19 | left=False, labelleft=False) |
| 20 | |
| 21 | |
| 22 | # %% |
no test coverage detected
searching dependent graphs…