python matplotlib.pyplot 绘制图表图像重叠的问题
def gen_graph(self, days): """ 根据历史数据绘制折线图并且保存 """ gas_list = self.get_histroy_gas(days) if gas_list: x = [] y = [] for index, gas in enumerate(gas_list): x.append(index+1) y.append(gas) # 计算变化百分比 percentage_change = [None] # 第一个点的变化百分比设为None for i in range(1, len(y)): change = ((y[i] -...