![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
matplotlib
Molength
这个作者很懒,什么都没留下…
展开
-
matplotlib(一):pyplot
Example 1: import matplotlib.pyplot as plt plt.plot([1,2,3,4]) plt.ylabel('some numbers') #plt.xlabel('x_nums') #可以选择在x轴写x轴的意义 plt.show() 注意:plt.plot([1,2,3,4]) 给如果给plot中只赋予一个list,则默认是y的数值。x轴是默认生成,...翻译 2018-10-18 09:59:27 · 239 阅读 · 0 评论 -
matplolib(二):GridSpec
GridSpec: 指定子图将放置的网格的几何位置。需要设置网格的行数和列数。子图布局参数(例如,左,右等)可以选择性调整。 SubplotSpec: 指定在给定GridSpec中的子图位置。 subplot2grid: 一个辅助函数,类似于pyplot.subplot , 但是使用基于0的索引,并可使子图跨越多个格子。 example1: import matplotlib.pyplot as ...翻译 2018-11-08 11:03:09 · 897 阅读 · 0 评论