Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Matplotlib backend issue (TkAgg) #1652

Open
balavay opened this issue Aug 14, 2024 · 1 comment
Open

Matplotlib backend issue (TkAgg) #1652

balavay opened this issue Aug 14, 2024 · 1 comment

Comments

@balavay
Copy link

balavay commented Aug 14, 2024

Hey, I am having an issue plotting stuff in the debugger.

When I import matplotlib and print the backend, the output is 'tkagg'.
When I try to plot something, I will get an unresponsive blank figure (unless i call pause which will make desired plot appear but albeit remain unresponsive). When I set backend to 'TkAgg', it works as expected.

When I run the script normally not in the debugger, everything works fine and the plot appears.

What is weird is that my colleague has the same versions of python matplotlib and vs code yet by default has a backend of 'TkAgg'.
I am not sure what's causing this discrepancy in default backend between the two of us. In any case, according to matplotlib documentation and the linked issue, tkagg and TkAgg should be equivalent.

Relevant issue: Matplotlib
VS Code version: 1.92.1
Python: 3.9.5
Matplotlib: (3.9.1 - 3.9.2)

@karthiknadig karthiknadig transferred this issue from microsoft/vscode-python-debugger Aug 15, 2024
@suxpert
Copy link

suxpert commented Aug 22, 2024

Possible duplicate of #1633. You may downgrade matplotlib to 3.8 as a workaround until this issue has been fixed.

@judej judej assigned debonte and unassigned debonte Oct 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants