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

Declarative show() does not pop up GUI #1207

Closed
dopplershift opened this issue Oct 16, 2019 · 0 comments · Fixed by #1254
Closed

Declarative show() does not pop up GUI #1207

dopplershift opened this issue Oct 16, 2019 · 0 comments · Fixed by #1254
Labels
Area: Plots Pertains to producing plots Type: Bug Something is not working like it should
Milestone

Comments

@dopplershift
Copy link
Member

import metpy.plots as mpplots

# Panel for plot with Map features
panel = mpplots.MapPanel()
panel.layout = (1, 1, 1)
panel.area = (-124, -72, 20, 53)
panel.projection = 'lcc'
panel.layers = ['coastline', 'borders', 'states', 'land']

# Bringing it all together
pc = mpplots.PanelContainer()
pc.size = (15, 9)
pc.panels = [panel]

pc.show()

I would have expected this to pop up a GUI window, but it doesn't. You have to call plt.show() to get that.

@dopplershift dopplershift added the Type: Bug Something is not working like it should label Oct 16, 2019
@dopplershift dopplershift added this to the 0.12 milestone Oct 16, 2019
@dopplershift dopplershift added the Area: Plots Pertains to producing plots label Oct 16, 2019
dopplershift added a commit to dopplershift/MetPy that referenced this issue Dec 23, 2019
The goal of the original implementation was to avoid triggering
matplotlib backend detection code on import by avoiding importing the
pyplot interface. This seems no longer necessary, and more importantly
it doesn't work just to use figure.show(), so just use plt.show()
@dopplershift dopplershift mentioned this issue Dec 23, 2019
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Plots Pertains to producing plots Type: Bug Something is not working like it should
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant