matplotlib绘制图表简易教程

matplotlib基本图表包含以下元素: x、y轴 x、y轴刻度 x、y轴刻度标签 绘图区域 #encoding=utf-8 import matplotlib.pyplot as plt x = [1,2,3,4] y = [5,4,3,2] fig = plt.figure() #线形 #图表分为2*3的网格,并选择第一个,同sublpot(2,3,1) plt.subplot(231) p
相关文章
相关标签/搜索