![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python数据可视化之matplotlib
文章平均质量分 61
星空下0516
程序的宇宙
展开
-
matplotlib两个Y轴,共享X轴
正常会遇到要左右画图的情况,直接上代码import matplotlib.pyplot as pltimport matplotlib as mplimport numpy as npmpl.rcParams['font.sans-serif'] = ['FangSong']mpl.rcParams['axes.unicode_minus'] = Falset = np.arange(0.05, 10.0, 0.01)s1 = np.exp(t)s2 = np.cos(t)fig原创 2022-03-23 19:06:29 · 2910 阅读 · 0 评论 -
matplotlib各种简单绘图
文章目录函数bar()-用于绘制柱状图barh() - 用于绘制条形图函数hist() - 用于绘制直方图函数pie() - 绘制饼状图函数polar() - 绘制极线图函数 scatter() - 绘制气泡图函数 stem- 绘制棉棒图函数 boxplot() - 绘制箱型图函数 errorbar() - 绘制误差棒图函数bar()-用于绘制柱状图import matplotlib.pyplot as pltimport matplotlib as mplimport numpy as nppl原创 2022-03-23 18:28:31 · 803 阅读 · 0 评论 -
matplotlib图像绘制基础
文章目录1. 图像里的各种元素1. 图像里的各种元素在绘制图像时,会对图像有各种需求,比如线图、点图、横纵坐标、标题等等。原创 2022-03-18 21:39:20 · 2157 阅读 · 0 评论