matplotlib_icon.py
来自「非原创。很好的python例子」· Python 代码 · 共 22 行
PY
22 行
#!/usr/bin/env python"""make the matplotlib svg minimization icon"""import matplotlibmatplotlib.use('SVG')from pylab import *rc('grid', ls='-', lw=2, color='k')fig = figure(figsize=(1, 1), dpi=72)axes([0.025, 0.025, 0.95, 0.95], axisbg='y')t = arange(0, 2, 0.05)s = sin(2*pi*t)plot(t,s, linewidth=4)axis([-.2, 2.2, -1.2, 1.2])grid(True)setp(gca(), xticklabels=[], yticklabels=[])#savefig('../images/matplotlib.svg', facecolor=0.75)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?