MCPcopy
hub / github.com/mne-tools/mne-python / _get_suptitle

Function _get_suptitle

mne/utils/_testing.py:388–395  ·  view source on GitHub ↗

Get fig suptitle (shim for matplotlib < 3.8.0).

(fig)

Source from the content-addressed store, hash-verified

386
387
388def _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
398def assert_trans_allclose(actual, desired, dist_tol=0.0, angle_tol=0.0):

Callers 3

test_tfr_plot_jointFunction · 0.90
test_tfr_plot_combineFunction · 0.90
test_tfr_plot_extrasFunction · 0.90

Calls 1

check_versionFunction · 0.85

Tested by

no test coverage detected