-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
In a jupyter notebook, after importing cocopp
, matplotlib
-plots cannot be shown anymore. We get the following error:
>>> import cocopp
>>> import matplotlib.pyplot as plt
>>> plt.plot([1,2])
>>> plt.show()
UserWarning: FigureCanvasAgg is non-interactive, and thus cannot be shown plt.show()
A quick fix is to run %matplotlib inline
before plotting as such:
>>> import cocopp
>>> import matplotlib.pyplot as plt
>>> %matplotlib inline
>>> plt.plot([1,2])
>>> plt.show()
I am using versions cocopp == 2.7.3
and matplotilib == 3.10.0
.
Metadata
Metadata
Assignees
Labels
No labels