matplotlib的legend参数与设置

以下面代码为例 import matplotlib.pyplot as plt from pylab import mpl mpl.rcParams['font.sans-serif'] = ['SimHei'] # 用来显示中文,不然会乱码 x = range(4) y = [120, 200, 250, 600] plt.bar(x=x, height=y, color='r', w
相关文章
相关标签/搜索