Skip to content

matplotlib plots cant be shown #868

@patricklnz

Description

@patricklnz

Bug description

plt.show() is only printing a UserWarning and not showing the plot.

Only solution I found that worked is:
matplotlib.use('tkagg')

Version

Windows

To reproduce

import matplotlib.pyplot as plt
plt.plot([1,2,3],[2,3,4]) # or anything else
plt.show()

Relevant log output

For matplotlib 3.8
UserWarning: FigureCanvasAgg is non-interactive, and thus cannot be shown

For matplotlib <= 3.7
UserWarning: Matplotlib is currently using agg, which is a non-GUI backend, so cannot show the figure.

Add any relevant information, e.g. used compiler, screenshots.

No response

Checklist

  • Attached labels, especially loc:: or model:: labels.
  • Linked to project

Metadata

Metadata

Assignees

Labels

class::bugBugs found in the softwareloc::python interfaceThis issue concerns the python interface to the backend implementation.

Type

No type

Projects

Status

✅ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions