Skip to content

Commit

Permalink
Revert "[ENH] Add fig.mne container for colorbar (#13019)"
Browse files Browse the repository at this point in the history
This reverts commit 4f1f4bb.
  • Loading branch information
larsoner committed Dec 14, 2024
1 parent 4f1f4bb commit dc2c451
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 6 deletions.
1 change: 0 additions & 1 deletion doc/changes/devel/13019.newfeature.rst

This file was deleted.

2 changes: 0 additions & 2 deletions mne/viz/circle.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

from functools import partial
from itertools import cycle
from types import SimpleNamespace

import numpy as np

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

# Add callback for interaction
if interactive:
Expand Down
3 changes: 0 additions & 3 deletions mne/viz/tests/test_circle.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,7 @@ def test_plot_channel_labels_circle():
fig, axes = plot_channel_labels_circle(
dict(brain=["big", "great", "smart"]),
colors=dict(big="r", great="y", smart="b"),
colorbar=True,
)
# check that colorbar handle is returned
assert isinstance(fig.mne.colorbar, matplotlib.colorbar.Colorbar)
texts = [
child.get_text()
for child in axes.get_children()
Expand Down

0 comments on commit dc2c451

Please sign in to comment.