![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
matplotlib
不 知
by design.
展开
-
Python中为朋友画图操作
import numpy as npimport pandas as pdimport matplotlib.pyplot as pltimport matplotlib as mplif __name__ == '__main__': mpl.rcParams['font.family'] = 'STSong' mpl.rcParams['axes.unicode_minus'] = False # 选择的分别是-注视时间,-首次注视时间,-注视次数 select原创 2020-11-30 22:09:56 · 139 阅读 · 0 评论 -
python .ravel() .flatten()
两者的本质都是想把多维的数组降为1维。区别在于**numpy.flatten()返回一份拷贝**,对数据更改时不会影响原来的数组,而numpy.ravel()则返回视图,对数据更改时会影响原来的数组。共同点:>>> import numpy as np>>> x = np.array([[1,3,4],[2,3,5]])>>> x.ravel()array([1, 3, 4, 2, 3, 5])>>> x.flatt.转载 2020-09-17 10:47:49 · 77 阅读 · 0 评论 -
Python中Numpy的搜索文档和matplotlib搜索文档
NumPyhttps://numpy.org/doc/stable/search.html?q=arraymatplotlibhttps://matplotlib.org/search.html?q=plot原创 2020-07-16 19:56:05 · 100 阅读 · 0 评论