警告信息:
MatplotlibDeprecationWarning: Support for FigureCanvases without a required_interactive_framework attribute was deprecated in Matplotlib 3.6 and will be removed two minor releases later.
解决方法:
这是由于pycharm的配置产生的问题,只需要在File—》settings—》Tools—》python scientific中,将show plots in tool window的对勾去掉,再点击Apply即可