Skip to content

Commit d61d9ab

Browse files
larsonerqian-chu
authored andcommitted
Revert "[ENH] Add fig.mne container for colorbar (mne-tools#13019)"
This reverts commit 4f1f4bb.
1 parent a257c98 commit d61d9ab

File tree

3 files changed

+0
-6
lines changed

3 files changed

+0
-6
lines changed

doc/changes/devel/13019.newfeature.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.

mne/viz/circle.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
from functools import partial
88
from itertools import cycle
9-
from types import SimpleNamespace
109

1110
import numpy as np
1211

@@ -372,7 +371,6 @@ def _plot_connectivity_circle(
372371
cb_yticks = plt.getp(cb.ax.axes, "yticklabels")
373372
cb.ax.tick_params(labelsize=fontsize_colorbar)
374373
plt.setp(cb_yticks, color=textcolor)
375-
fig.mne = SimpleNamespace(colorbar=cb)
376374

377375
# Add callback for interaction
378376
if interactive:

mne/viz/tests/test_circle.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,7 @@ def test_plot_channel_labels_circle():
1717
fig, axes = plot_channel_labels_circle(
1818
dict(brain=["big", "great", "smart"]),
1919
colors=dict(big="r", great="y", smart="b"),
20-
colorbar=True,
2120
)
22-
# check that colorbar handle is returned
23-
assert isinstance(fig.mne.colorbar, matplotlib.colorbar.Colorbar)
2421
texts = [
2522
child.get_text()
2623
for child in axes.get_children()

0 commit comments

Comments
 (0)