Skip to content

Commit 8062014

Browse files
committed
MAINT: Fix for latest PyVista (#12275)
1 parent ad690a8 commit 8062014

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

mne/viz/backends/_pyvista.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,6 @@ def _init(
110110
off_screen=False,
111111
notebook=False,
112112
splash=False,
113-
multi_samples=None,
114113
):
115114
self._plotter = plotter
116115
self.display = None
@@ -125,7 +124,6 @@ def _init(
125124
self.store["shape"] = shape
126125
self.store["off_screen"] = off_screen
127126
self.store["border"] = False
128-
self.store["multi_samples"] = multi_samples
129127
self.store["line_smoothing"] = True
130128
self.store["polygon_smoothing"] = True
131129
self.store["point_smoothing"] = True
@@ -237,12 +235,12 @@ def __init__(
237235
notebook=notebook,
238236
smooth_shading=smooth_shading,
239237
splash=splash,
240-
multi_samples=multi_samples,
241238
)
242239
self.font_family = "arial"
243240
self.tube_n_sides = 20
244241
self.antialias = _get_3d_option("antialias")
245242
self.depth_peeling = _get_3d_option("depth_peeling")
243+
self.multi_samples = multi_samples
246244
self.smooth_shading = smooth_shading
247245
if isinstance(fig, int):
248246
saved_fig = _FIGURES.get(fig)
@@ -892,7 +890,10 @@ def _toggle_antialias(self):
892890
plotter.disable_anti_aliasing()
893891
else:
894892
if not bad_system:
895-
plotter.enable_anti_aliasing(aa_type="msaa")
893+
plotter.enable_anti_aliasing(
894+
aa_type="msaa",
895+
multi_samples=self.multi_samples,
896+
)
896897

897898
def remove_mesh(self, mesh_data):
898899
actor, _ = mesh_data

0 commit comments

Comments
 (0)