Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion mne/viz/_3d.py
Original file line number Diff line number Diff line change
Expand Up @@ -2872,7 +2872,7 @@ def plot_dipole_locations(dipoles, trans=None, subject=None, subjects_dir=None,
u, v, w = ori.T
renderer.quiver3d(x, y, z, u, v, w, scale=3 * scale,
color=color, mode='arrow')

renderer.show()
fig = renderer.scene()
else:
raise ValueError('Mode must be "cone", "arrow" or orthoview", '
Expand Down
3 changes: 2 additions & 1 deletion mne/viz/backends/_pyvista.py
Original file line number Diff line number Diff line change
Expand Up @@ -661,7 +661,8 @@ def _actor(self, mapper=None):
return actor

def _process_events(self):
_process_events(self.plotter)
for plotter in self._all_plotters:
_process_events(plotter)

def _update_picking_callback(self,
on_mouse_move,
Expand Down
3 changes: 2 additions & 1 deletion mne/viz/backends/_qt.py
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,8 @@ def show(self):
with _qt_disable_paint(self.plotter):
with self._window_ensure_minimum_sizes():
self.plotter.app_window.show()
self.plotter.update()
self._update()
self._process_events()


def _create_dock_widget(window, name, area):
Expand Down
2 changes: 1 addition & 1 deletion tutorials/sample-datasets/plot_phantom_4DBTi.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
print("errors (mm) : %s" % errors)

###############################################################################
# Plot the dipoles in 3D
# Plot the dipoles in 3D:
actual_amp = np.ones(len(dip)) # misc amp to create Dipole instance
actual_gof = np.ones(len(dip)) # misc GOF to create Dipole instance
dip = mne.Dipole(dip.times, pos, actual_amp, ori, actual_gof)
Expand Down
2 changes: 1 addition & 1 deletion tutorials/source-modeling/plot_source_alignment.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
# Note that all three coordinate systems are **RAS** coordinate frames and
# hence are also `right-handed`_ coordinate systems. Finally, note that the
# ``coord_frame`` parameter sets which coordinate frame the camera
# should initially be aligned with. Let's take a look:
# should initially be aligned with. Let's have a look:

fig = mne.viz.plot_alignment(raw.info, trans=trans, subject='sample',
subjects_dir=subjects_dir, surfaces='head-dense',
Expand Down