Skip to content

Commit 034e9dc

Browse files
wmvanvlietlarsoner
andauthored
Add EvokedField.plotter (#12005)
Co-authored-by: Eric Larson <larson.eric.d@gmail.com>
1 parent 77ba263 commit 034e9dc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

mne/viz/evoked_field.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,7 @@ def __init__(
196196
self._in_brain_figure = False
197197

198198
self._renderer.set_interaction(interaction)
199+
self.plotter = self._renderer.plotter
199200
self.interaction = interaction
200201

201202
# Prepare the surface maps
@@ -242,7 +243,7 @@ def current_time_func():
242243
subscribe(self, "contours", self._on_contours)
243244

244245
if not self._in_brain_figure:
245-
self._renderer.set_camera(azimuth=10, elevation=60)
246+
self._renderer.set_camera(azimuth=10, elevation=60, distance="auto")
246247
self._renderer.show()
247248

248249
def _prepare_surf_map(self, surf_map, color, alpha):

tutorials/evoked/20_visualize_evoked.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
1111
As usual we'll start by importing the modules we need:
1212
"""
13-
1413
# %%
1514

1615
import numpy as np

0 commit comments

Comments
 (0)