-
-
Notifications
You must be signed in to change notification settings - Fork 7.7k
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
[Bug]: Plot does not show unless it is resized #25768
Comments
Are you running this as a stand alone script or by typing into a terminal? If a terminal, which one? Looks like we are missing a draw command? My guess is minimizing and the restoring the window should also work as would be adding |
I can't reproduce this in |
And do you use any non-standard window managers (moom, etc)? |
Hi, sorry for the late response. The problem still persists in my computer. @greglucas, I did not used multiple figures. I messed up with the title of the figure in the screenshot. @jkl, I used magnet as one of my window managers. Attaching the screenshots of my terminal and the output after running the plt.show() script. |
I'd suggest turning magnet off and seeing if the problem persists. |
@jklymak, I turned off magnet and still the problem persists. |
Can confirm this problem exists on Intel Macos 13.3.1, Python 3.11.3, matplotlib 3.7.1. Interestingly in the given example the problem does not exist for me, but in other code. |
Unfortunately, I still can't reproduce the issue. Is there something external we need to install to see this or a system setting we need to enable? I've tried running on an external monitor and HiDPI display and both work as expected for me. |
Thank you all. This issue is not present anymore after I upgraded my arm64 Mac to macOS 13.4. |
@wrnod you and OP may have some system setting or utility that is causing the problem. It's hard for us to debug without more information. |
Hi @wrnod, I will reopen this issue until it is resolved. |
@wrnod are you able to provide any additional information to help with debugging? None of the maintainers are able to reproduce this which makes it really hard to track down what is going wrong. If you have explicit steps you're taking, or previous versions that work and ones that caused issues that would be valuable information.
|
Thank you for the follow-up questions. Unfortunately I can't share the code, since it is proprietery. I will try to isolate the issue when I have some time. The issue started for me after updgrading to Python 3.11.3 and matplotlib 3.7.1. |
I'll close for lack of further details, but feel free to request a re-open. |
Bug summary
The plot generated from matplotlib.pyplot does not show automatically. Instead, I need to resize the window plot for it to show.
Code for reproduction
Actual outcome
Expected outcome
Additional information
No response
Operating system
macOS 13.3.1
Matplotlib Version
3.7.1
Matplotlib Backend
MacOSX
Python version
Python 3.11.3
Jupyter version
No response
Installation
None
The text was updated successfully, but these errors were encountered: