Get fig suptitle (shim for matplotlib < 3.8.0).
(fig)
| 386 | |
| 387 | |
| 388 | def _get_suptitle(fig): |
| 389 | """Get fig suptitle (shim for matplotlib < 3.8.0).""" |
| 390 | # TODO: obsolete when minimum MPL version is 3.8 |
| 391 | if check_version("matplotlib", "3.8"): |
| 392 | return fig.get_suptitle() |
| 393 | else: |
| 394 | # unreliable hack; should work in most tests as we rarely use `sup_{x,y}label` |
| 395 | return fig.texts[0].get_text() |
| 396 | |
| 397 | |
| 398 | def assert_trans_allclose(actual, desired, dist_tol=0.0, angle_tol=0.0): |
no test coverage detected