matplotlib
莫相忘
这个作者很懒,什么都没留下…
展开
-
Matplotlib学习(一)基本用法
原文地址 https://morvanzhou.github.io/tutorials/data-manipulation/plt/2-2-figure/(1)基本用法#使用import导入模块matplotlib.pyplot,并简写成plt 使用import导入模块numpy,并简写成npimport matplotlib.pyplot as pltimport numpy as np...转载 2019-01-27 12:23:29 · 440 阅读 · 0 评论 -
Matplotlib学习(二)Annotation标注 && tick标注
原文地址 https://morvanzhou.github.io/tutorials/data-manipulation/plt/2-6-annotation/(一)Annotation标准(1)添加注释 annotate其中参数xycoords=‘data’ 是说基于数据的值来选位置, xytext=(+30, -30)textcoords=‘offset points’ 对于标注位置...转载 2019-01-27 12:56:43 · 415 阅读 · 0 评论 -
Matplotlib学习(三)绘制图形
原文地址 https://morvanzhou.github.io/tutorials/data-manipulation/plt/3-1-scatter/(一)散点图生成具有均值0,方差1的高斯分布(标准正态分布)的数据,绘制大小size=75,颜色为T,透明度50%的散点图import matplotlib.pyplot as pltimport numpy as npn = 1...转载 2019-01-28 16:42:29 · 318 阅读 · 0 评论 -
Matplotlib学习(四)多图合并显示 && 动画Animation
原文地址 https://morvanzhou.github.io/tutorials/data-manipulation/plt/5-1-animation/(一)Subplot多合一显示example 1: 简单的均匀图 example 2: 不均匀图中图example 1 代码:import matplotlib.pyplot as pltplt.figure(figsize...转载 2019-01-28 22:28:48 · 3582 阅读 · 0 评论