目录
1.矢量图显示函数use_svg_display()内部报错
1.矢量图显示函数use_svg_display()内部报错
报错如下:
DeprecationWarning: `set_matplotlib_formats` is deprecated since IPython 7.23, directly use `matplotlib_inline.backend_inline.set_matplotlib_formats()`
display.set_matplotlib_formats('svg')
解决方法:将 display.set_matplotlib_formats('svg')删除,更改为
display.display_svg()
2.矢量图不显示
解决方法:在代码最后加上一行
plt.show()
最终效果: