摘要: fig, axs = plt.subplots(3, 2,constrained_layout=True, figsize=(10, 10)) 通过 figsize=(10, 10) 来调节, 感觉不是最佳的方案,先用吧 ... 阅读全文
posted @ 2021-01-28 16:50 bH1pJ 阅读(2103) 评论(0) 推荐(0) 编辑
摘要: ,constrained_layout=True fig, axs = plt.subplots(3, 2,constrained_layout=True) 自动调整间隔,初步感觉效果还不错 阅读全文
posted @ 2021-01-28 16:34 bH1pJ 阅读(203) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2021-01-28 15:45 bH1pJ 阅读(79) 评论(0) 推荐(0) 编辑
摘要: numpy 按照 轴取平均 a= a.mean(axis = 0) 对第一个轴进行取平均; 阅读全文
posted @ 2021-01-28 15:38 bH1pJ 阅读(45) 评论(0) 推荐(0) 编辑
摘要: colorVec1 = (["lightgray"] * (A.shape[0]) + ["darkorange"] * (B.shape[0]) + ["seagreen"] * (C.shape[0]) ... 阅读全文
posted @ 2021-01-28 14:06 bH1pJ 阅读(30) 评论(0) 推荐(0) 编辑
摘要: 这个人总结的真好! https://blog.csdn.net/taoqick/article/details/82255086 阅读全文
posted @ 2021-01-28 14:04 bH1pJ 阅读(12) 评论(0) 推荐(0) 编辑
摘要: pop 后 阅读全文
posted @ 2021-01-28 13:53 bH1pJ 阅读(54) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2021-01-28 12:39 bH1pJ 阅读(13) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2021-01-28 12:38 bH1pJ 阅读(10) 评论(0) 推荐(0) 编辑
摘要: plt.plot(x, y1, "-b", label="sine")plt.plot(x, y2, "-r", label="cosine")plt.legend(loc="upper left") 基本思想是分开画, 最后把legend给加上去 pl... 阅读全文
posted @ 2021-01-28 10:31 bH1pJ 阅读(163) 评论(0) 推荐(0) 编辑