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.

[DOC] Add `Brain._renderer.set_camera` to `stc.plot` documentation

See original GitHub issue

I noticed that it wasn’t described in the SourceEstimate.plot documentation how to set a view that is not one of the canonical views. I had to look in the source code to remember how to do this so I thought it might be useful to document. It does expose a private function as in brain._renderer.set_camera(azimuth=-110, elevation=100, distance=500, np.array([-0.03326882, -0.04459817, 0.08267832])). This is quite messy/showing the under the hood bits that maybe shouldn’t be shown but I’m not sure how else to get the view you really like without the GUI.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
GuillaumeFaveliercommented, Feb 9, 2021

That is a good point! 👌

1reaction
GuillaumeFaveliercommented, Feb 9, 2021

Are you aware of the public function called show_view() ? It uses set_camera() under the hood and accepts elevation, azimuth, distance …etc. Let me know if there is something that you can’t accomplish with it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Visualize source time courses (stcs) - MNE-Python
We can plot the source estimate using the stc.plot just as in other MNE objects. ... on our documentation website with: # brain.save_movie(time_dilation=20, ......
Read more >
eelbrain.plot.brain.dspm - Read the Docs
Plot a source estimate with coloring for dSPM values (bipolar). Parameters. src (NDVar, dims = ([case,] source, [time])) – NDVar ...
Read more >
Source code for visbrain.objects.scene_obj
_camera = value # Set camera to the main widget : self.wc.camera = value # Link ... [docs]class SceneObj(object): """Create a scene and...
Read more >
A brief overview of brainrender`s functionality - GitHub
A core design goal is to facilitate the rendering of any data registered to a reference atlas. To this end, brainrender facilitates the...
Read more >
brain plot add.foci - Support & Discussions - MNE Forum
Hi! I'm trying to add a foci to a stc.plot() by using a coordinate, but no matter what coordinate I try, only a...
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