使用matplotlib的plt.subplot()函数绘图出现MatplotlibDeprecationWarning的解决方法

警告信息:

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即可


 

你可能感兴趣的:(python报错解决,matplotlib,python,机器学习)