![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
matplotlib
天伦ltl
这个作者很懒,什么都没留下…
展开
-
matplotlib显示中文
【注意】可能与本文主题无关,不过我还是想指出来:使用matplotlib库时,下面两种导入方式是等价的(我指的是等效,当然这个说法可以商榷:)import matplotlib.pyplot as plt import pylab as plt【效果图】【方式一】FontProperties 1 import matplotlib.pyplot as plt 2 from ma...转载 2019-06-06 15:30:49 · 98 阅读 · 0 评论 -
matplotlib学习(1)
matplotlib基本要点画出一天的气温图程序例子:from matplotlib import pyplot as plt# 数据在X轴的位置,是一个可迭代对象x = range(2, 26, 2)# 数据在y轴的位置,是一个可迭代对象y = [15, 13, 14.5, 17, 20, 25, 26, 26, 24, 22, 18, 15]# 传入x和y,通过pyplot制图...原创 2019-06-06 16:56:56 · 138 阅读 · 0 评论