如何使用Matplotlib绘制折线图

2024-10-18 02:21:47

1、打开Ubuntu虚拟机,在桌面空白处右键,点击打开终端。

如何使用Matplotlib绘制折线图

3、使用gedit创建一个python文件,命令如下:gedit zhexiantu.py

如何使用Matplotlib绘制折线图

5、在终端启动jupyter notebook,命令如下:jupyter notebook

如何使用Matplotlib绘制折线图

7、在输入框输入程序地址,点击运行,折线图效果如下图所示。%run ~/zhexiantu.py

如何使用Matplotlib绘制折线图
猜你喜欢