Skip to content

error when trying to use pyvista to plot stc #7239

@SophieHerbst

Description

@SophieHerbst

I am trying to use the new pyvista-plotting for stc (through spyder),
on my own data, and this mne-example

When I do not specify a backend, it uses majavi.
I tried: mne.viz.set_3d_backend('pyvista')

Output of stc.plot:

File "/home/sh254795/anaconda3/lib/python3.7/site-packages/mne/viz/_brain/_brain.py", line 201, in init
shape=(n_row, n_col), fig=figure)

File "/home/sh254795/anaconda3/lib/python3.7/site-packages/mne/viz/backends/_pyvista.py", line 141, in init
self.plotter.disable_depth_peeling()

AttributeError: 'Plotter' object has no attribute 'disable_depth_peeling'

Output of python -c "import mne; mne.sys_info()":

mne: 0.20.dev0
numpy: 1.17.2 {blas=mkl_rt, lapack=mkl_rt}
scipy: 1.3.1
matplotlib: 3.1.1 {backend=Qt5Agg}

sklearn: 0.21.3
numba: 0.45.1
nibabel: 2.5.1
cupy: Not found
pandas: 0.25.1
dipy: 1.0.0
mayavi: 4.7.1 {qt_api=pyqt5, PyQt5=5.9.2}
pyvista: 0.22.4
vtk: 8.1.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions