simple_plot.py
来自「非原创。很好的python例子」· Python 代码 · 共 21 行
PY
21 行
#!/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 + =
减小字号Ctrl + -
显示快捷键?