Skip to content

Commit

Permalink
BUG: Fix declarative show() (Fixes #1207)
Browse files Browse the repository at this point in the history
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()
  • Loading branch information
dopplershift committed Dec 23, 2019
1 parent ff1bb66 commit ac8c818
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/metpy/plots/declarative.py
Expand Up @@ -568,7 +568,7 @@ def save(self, *args, **kwargs):
def show(self):
"""Show the constructed graphic on the screen."""
self.draw()
self.figure.show()
plt.show()


@exporter.export
Expand Down

0 comments on commit ac8c818

Please sign in to comment.