Skip to content

Commit ede3710

Browse files
ENH: pass text2d args explicitly in pyvista backend
1 parent a34397b commit ede3710

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

mne/viz/backends/_pyvista.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -731,15 +731,14 @@ def text2d(
731731
):
732732
size = 14 if size is None else size
733733
position = (x_window, y_window)
734-
kwargs = dict(
734+
actor = self.plotter.add_text(
735735
text=text,
736736
position=position,
737737
font_size=size,
738738
color=color,
739739
viewport=True,
740740
font_file=font_file,
741741
)
742-
actor = self.plotter.add_text(**kwargs)
743742
if isinstance(justification, str):
744743
if justification == "left":
745744
actor.GetTextProperty().SetJustificationToLeft()

0 commit comments

Comments
 (0)