matplotlib
python中matplotlib笔记
Sallery
达梦数据库;oralce数据库运维;python爱好;
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
matplotlib--------简单的折线图之x轴y轴刻度
import matplotlib.pyplot as plt from matplotlib import font_manager import random plt.figure(figsize=(20,8),dpi = 80) # 设置figure,dpi x = range(2,26,2) y = [random.randint(15,30) for i in x ] ...原创 2020-02-22 22:19:47 · 3958 阅读 · 0 评论 -
matplotlib--------简单折线图之折线的样式,折点的样式
1.简单实现一个折线图 2.在生成一个简单的折线图 3.设置折线的颜色和形状,改变折点的样式及形状(红配绿赛狗屁,手动狗头) plt.plot(x,y,这个位置进项改变折点的形状,折线的形形状) 其中,折线的属性 color = 'r' 折线为红色,这里可以写red也可以写 r alpha = 0.5 折线的透明度(0-1) linestyle = '--' 折线的...原创 2020-02-22 20:58:23 · 4389 阅读 · 0 评论 -
No handles with labels found to put in legend
错误的代码 from matplotlib import pyplot as plt from matplotlib import font_manager import random yy = range(0,35,5) y1 = [random.randint(0,35) for i in yy] y2 = [random.randint(1,35) for i in yy] x =...原创 2020-02-16 23:29:08 · 1212 阅读 · 0 评论
分享