⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 simple_plot.py

📁 非原创。很好的python例子
💻 PY
字号:
#!/usr/bin/env python"""Example: simple line plot.Show how to make and save a simple line plot with labels, title and grid"""from pylab import *t = arange(0.0, 1.0+0.01, 0.01)s = cos(2*2*pi*t)plot(t, s)xlabel('time (s)')ylabel('voltage (mV)')title('About as simple as it gets, folks')grid(True)#savefig('simple_plot.png')savefig('simple_plot')show()

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -