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.

Allow blocking execution of plot_alignment() and stc.plot()

See original GitHub issue

The alignment and the Brain plots are both used in interactive exploration and in non-interactive scripts.

A common annoying issue that I and other users regularly run into is that we write a short script that displays the sensor alignment or a SourceEstimate, run it (e.g. via the Run button in VS Code), the window pops up – and immediately disappears. So one then needs to run the script again – this time, with python -i or after inserting some blocking call like input().

It would be great if there was an easier way to ensure a blocking behavior.

cc @GuillaumeFavelier

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
hoechenbergercommented, Jan 19, 2022

Ah ok! Thought we’d always had this param. In that case – let’s block it 😁👌

1reaction
GuillaumeFaveliercommented, Jan 19, 2022

I do not mind changing the name if it does the same thing.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Plotting in a non-blocking way with Matplotlib - Stack Overflow
I have tried using show(block=False) as some people suggest, but all I get is a frozen window. If I simply call show() ,...
Read more >
Handling bad channels — MNE 1.2.2 documentation
plot() . This will pause the script while the plot is open, giving you time to mark bad channels before subsequent analysis or...
Read more >
mne-python/_3d.py at main - GitHub
"""Plot head, sensor, and source space alignment in 3D. ... surfaces = list() # if no `trans` can't plot mri surfaces ... '`trans=None`...
Read more >
Python Stacks, Queues, and Priority Queues in Practice
In this tutorial, you'll take a deep dive into the theory and practice of queues in programming. Along the way, you'll get to...
Read more >
Alignment of pgfplots inside subfloats when using tikzplotlib
The axis height and width passed from tikzplotlib to tikz refer to the axis box. But the \includegraphics command's width parameter refers ...
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