Python第三方库——Matplotlib_子图共享坐标轴
来源:互联网 发布:达内java培训北京校区 编辑:程序博客网 时间:2024/06/08 16:04
import matplotlib.pyplot as pltimport numpy as npt = np.arange(0.01, 5.0, 0.01)s1 = np.sin(2*np.pi*t)s2 = np.exp(-t)s3 = np.sin(4*np.pi*t)ax1 = plt.subplot(311)plt.plot(t, s1)plt.setp(ax1.get_xticklabels(), fontsize=6)# share x onlyax2 = plt.subplot(312, sharex=ax1)plt.plot(t, s2)# make these tick labels invisibleplt.setp(ax2.get_xticklabels(), visible=False)# share x and yax3 = plt.subplot(313, sharex=ax1, sharey=ax1)plt.plot(t, s3)plt.xlim(0.01, 5.0)plt.show()
阅读全文
0 0
- Python第三方库——Matplotlib_子图共享坐标轴
- Python第三方库——Matplotlib_绘制数据的均值和方差图
- Python第三方库——Matplotlib_在同个figure中绘制多个图并给出legend
- Python第三方库——Numpy
- Python第三方库——OpenCV
- Python第三方库——urlparser
- PyThon第三方库
- 第三方python库
- Python第三方库
- python第三方库
- python第三方库——sklearn库
- Python第三方库——Matplotlib库
- Python第三方库使用——splinter
- Python第三方库使用 —— PIL
- Python网络爬虫——Requests第三方库
- Python爬虫—3第三方库_1_requests_入门
- Python爬虫—3第三方库_1_requests_进阶
- NDK调用第三方so共享库
- 彻底搞懂Oracle的左外连接和右外连接(以数据说话)
- 系统重装不了的N种情况以及解决方法
- 为什么会这么痛苦,原因是......
- [JAVA学习笔记-72]关于Priority Inversion
- 应用签名不一致,该应用可能被篡改的问题
- Python第三方库——Matplotlib_子图共享坐标轴
- C++如何将2个BYTE数据转化为1个BYTE
- 31.退出功能-活动实践
- wireshark抓包分析--测试网站登录
- Android7.0中文API -- RatingBar
- LeetCode 49. Group Anagrams
- EPPLUS 操作ExcelC#
- Map集合的遍历方法
- Web应用开发周期