# 3 = rest cycle
# 1 = discharge
rest_start = np.zeros(len(mode))
past_mode = float(3)
for i in range(len(mode)):
if mode[i] == float(3):
if mode[i] != past_mode:
rest_start[i] = 1
past_mode = mode[i]
for i in range(len(rest_start)):
if rest_start[i] == 1:
ax0.plot(t[i]/3600,V[i],'ro')
我需要在情节上绘制所有低点。现在,我在充电周期上只有点,但放电时点很高,应该低。