ont color=#999AAA >代码如下(示例):直方图笔记
import numpy as np
import matplotlib.pyplot as plt
data = np.load('国民经济核算季度数据.npz',allow_pickle=True)
name = data['columns']
values = data['values']
plt.rcParams['font.sans-serif'] = 'SimHei'
plt.rcParams['axes.unicode_minus'] = False
label1 = ['第一产业','第二产业','第三产业']
label2 = ['农业','工业','建筑','批发','交通','餐饮','金融',