Skip to content

stc.plot with pyvista: error with hemi='both' #7250

@SophieHerbst

Description

@SophieHerbst

I am not able to plot the two hemispheres of an stc at the same time with time_viewer=True , for instance when using this example:

stc.plot(hemi='both', subjects_dir=subjects_dir, initial_time=0.07,
          size=(800, 600),time_viewer=True)

Error:

File "/home/sh254795/pyvista/pyvista/plotting/plotting.py", line 2215, in subplot
raise IndexError('Column index is out of range ({})'.format(self.shape[1]))

IndexError: Column index is out of range (1)

With hemi='split' the panels overlap, and the time-slider is not usable (I can send a screenshot).
Also, from the documentation it is not clear to me what the difference between 'both' and 'split' would do.

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