logo.py
来自「非原创。很好的python例子」· Python 代码 · 共 25 行
PY
25 行
#!/usr/bin/env python# This file generates the matplotlib web page logofrom pylab import *# convert data to mVx = 1000*0.1*fromstring( file('data/membrane.dat', 'rb').read(), Float32)# 0.0005 is the sample intervalt = 0.0005*arange(len(x))figure(1, figsize=(7,1), dpi=100)ax = subplot(111, axisbg='y')plot(t, x)text(0.5, 0.5,'matplotlib', color='r', fontsize=40, fontname='Courier', horizontalalignment='center', verticalalignment='center', transform = ax.transAxes, )axis([1, 1.72,-60, 10])setp(gca(), 'xticklabels', [])setp(gca(), 'yticklabels', [])#savefig('logo2.png', dpi=300)show()
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?