question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Feat Requests: pyvista - Brain/timeviewer

See original GitHub issue

The pyvista, stc plotting is great and already really useful for reviewing data.

here are a few thoughts (in no particular order) I’ve had using it as part of an analysis pipeline for the last week.

  1. there is no brain.remove_labels() which is mentioned in the add_label docs.
  2. It would be useful to return vertices that are interactively added using timeviewer. This would let you save these points and later use them for analysis.
  3. is it possible to link two timeviewers so they share the same point picking and optionally the same camera/view. I wouldn’t want them time synced (at least not by default) so you can look at different types of stcs.
  4. I wonder what the opportunities are for adding labels and having time_viewer display their wave forms. Exposing the parameters for extract_label_time_course via the gui might be a pain though.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
larsonercommented, Sep 9, 2020

you should be able to extend extract_label_time_course allowing to pass white surfaces instead of src. for extract_label_time_course you need the locations and normals of the vertices present in the stc.

Unfortunately this will be quite slow since you should compute the normal directions using patch info. Better I think to allow people to pass src to stc.plot. It’s not much to ask, you need it for plot_volume_source_estimates anyway.

1reaction
agramfortcommented, Sep 9, 2020

you should be able to extend extract_label_time_course allowing to pass white surfaces instead of src. for extract_label_time_course you need the locations and normals of the vertices present in the stc.

Read more comments on GitHub >

github_iconTop Results From Across the Web

PyVista — PyVista 0.37.0 documentation
This package provides a Pythonic, well-documented interface exposing VTK's powerful visualization backend to facilitate rapid prototyping, analysis, and visual ...
Read more >
head — PyVista 0.36.1 documentation
Return the header stats of this dataset. If in IPython, this will be formatted to HTML. Otherwise returns a console friendly string. Parameters....
Read more >
Flask Application — PyVista 0.37.0 documentation
You can use pyvista in to make a flask application to display both static and dynamic plots. See the following examples as well...
Read more >
Examples — PyVista 0.37.0 documentation
These examples demo how to read various file types into PyVista mesh objects, create meshes from NumPy arrays, and how to create primitive...
Read more >
pyvista.Actor — PyVista 0.37.0 documentation
pyvista.Actor#. class Actor(mapper=None, prop=None)[source]#. Wrap vtkActor. This class represents the geometry & properties in a rendered scene.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found