8000 plt.show doesn't warn if a non-GUI backend is being used · Issue #7908 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content
plt.show doesn't warn if a non-GUI backend is being used #7908
Closed
@dstansby

Description

@dstansby

If a non-GUI background is being used, and plt.gcf().show() is called it raises the warning

/Users/dstansby/matplotlib/lib/matplotlib/figure.py:402: UserWarning: matplotlib is currently using a non-GUI backend, so cannot show the figure
  "matplotlib is currently using a non-GUI backend, "

However, calling plt.show does not raise this warning, and just silently doesn't show anything. I would expect at least the same warning to be raised.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Difficulty: Easyhttps://matplotlib.org/devdocs/devel/contribute.html#good-first-issues

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0