Some useful python code
程序员文章站
2022-05-08 19:29:14
...
创建绘制并保存Python boxplot子图
# Create a figure instance
# fig = plt.figure(1, figsize=(9, 6))
# Create an axes(subplot) instance
# ax = fig.add_subplot(111)
# ax.boxplot(machine1)
# fig.savefig('machine_1_'+'boxplot1.png')
关闭屏幕显示
# use boxplot to show the data
# close the in screen print of the figure
plt.ioff()
# oprn the on screen print of the figure
plt.ion()
转载于:https://www.jianshu.com/p/5c43d99ccb12
推荐阅读
-
如何在Mac系统使用Visual Studio Code运行Python
-
python3转换code128条形码的方法
-
python-Non-UTF-8 code starting with ‘\xbd‘ in file C:/Users/Adminis.....出错
-
VS Code 配置 Python 开发环境
-
使用 Visual Studio Code(VSCode)搭建简单的Python+Django开发环境的方法步骤
-
python从零开始基础入门——开发环境搭建:Visual Studio Code
-
Qt Creator + PyQT5 + Python + VS Code开发环境搭建
-
Visual Studio Code 配置python环境
-
Visual Studio Code安装+配置python环境
-
Microsoft Visual Studio Code配置Python教程