matplotlib画图(4)
2014-06-13 00:00
260 查看
import numpy as np import matplotlib.pyplot as plt t = np.arange(0.0, 2.0, 0.01) s = np.sin(2*np.pi*t) plt.plot(t,s) plt.title(r'$\alpha_i > \beta_i$', fontsize=20) plt.text(1, -0.6, r'$\sum_{i=0}^\infty x_i$', fontsize=20) plt.text(0.6, 0.6, r'$\mathcal{A}\mathrm{sin}(2 \omega t)$', fontsize=20) plt.xlabel('time (s)') plt.ylabel('volts (mV)')
import numpy as np import matplotlib.pyplot as plt fig = plt.figure() ax = fig.add_subplot(111, polar=True) r = np.arange(0,1,0.001) theta = 2*2*np.pi*r line, = ax.plot(theta, r, color='#ee8d18', lw=3) ind = 800 thisr, thistheta = r[ind], theta[ind] ax.plot([thistheta], [thisr], 'o') ax.annotate('a polar annotation', xy=(thistheta, thisr), # theta, radius xytext=(0.05, 0.05), # fraction, fraction textcoords='figure fraction', arrowprops=dict(facecolor='black', shrink=0.05), horizontalalignment='left', verticalalignment='bottom', ) plt.show()
相关文章推荐
- python画图_matplotlib和pandas
- Python 3下Matplotlib画图中文显示乱码的解决方法
- 【Python】Matplotlib画图(二)——根据函数公式画图
- Matplotlib画图之调整字体大小
- matplotlib画图不显示
- Matplotlib for presenting results(论文画图matplotlib jupyter文档)
- matplotlib入门使用画图实例及其他内容备忘记录
- python使用matplotlib画图出现中文乱码
- Python:Matplotlib 画图(Code)
- python 的 matplotlib画图 画曲线图
- matplotlib画图(5)
- matplotlib画图plot线型设置
- python matplotlib.pyplot画图设置刻度
- python 安装画图工具matplotlib
- scikit-learn:matplotlib.pyplot常用画图功能总结(1)
- matplotlib画图(3)
- python中引用matplotlib画图的几个常用命令及基本步骤
- matplotlib画图中文乱码的解决办法
- python matplotlib画图 画多个子图
- Matplotlib关于以时间为横坐标画图