摘要: 根据 x(列表)和 y(列表)组成点,然后连接成线 实例: import matplotlib.pyplot as plt c = [1, 2, 6, 8, 10] g = [1, 2, 10, 9, 8] plt.figure(0) # 创建画布 plt.plot(c, g) # 连接成线 plt 阅读全文
posted @ 2020-07-09 15:32 -费费 阅读(1560) 评论(0) 推荐(0) 编辑
摘要: np.c_[a, b] 是按行连接两个矩阵,就是把两矩阵左右相加,要求行数相等,类似于 pandas 中的 concat() np.r_[a, b] 是按列连接两个矩阵,就是把两矩阵上下相加,要求列数相等,类似于 pandas 中的 merge() 实例: import numpy as np a 阅读全文
posted @ 2020-07-09 09:31 -费费 阅读(576) 评论(0) 推荐(0) 编辑