0x01 plt.lengend()
用于给图像加图例。
图例是集中于地图一角或一侧的地图上各种符号和颜色所代表内容与指标的说明,有助于更好的认识地图。...如果为True,则图例标记位于图例标签的左侧
numpoints the number of points in the legend for line
为线条图图例条目创建的标记点数
scatterpoints...plt
#x,y,大小,颜色
plt.scatter([1,2,3,4],[2,4,6,8],[10,20,30,400],['r', 'b','y','k'])
plt.scatter([1,2,3,4...plt.figure(3)
plt.plot([1, 2, 3, 4], [1, 4, 9, 16])
plt.show()
会连续展现三张图,注意与下面subplot的区别。...S)
plt.subplot(212)
plt.plot([1, 2, 3, 4], [1, 4, 9, 16])
plt.show()
?