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
相關文章
相關標籤/搜索