added graph normalized range for 100% battery
This commit is contained in:
+3
-1
@@ -314,7 +314,9 @@ def main() -> None:
|
|||||||
plot.ylabel("Akkustand")
|
plot.ylabel("Akkustand")
|
||||||
plot.grid()
|
plot.grid()
|
||||||
plot.subplot(NUM_PLOTS, 1, 4)
|
plot.subplot(NUM_PLOTS, 1, 4)
|
||||||
plot.plot(dt_h, v_range)
|
normalized_range = 100*np.array(v_range)/v_soc
|
||||||
|
normalized_range_mean = np.mean(normalized_range)
|
||||||
|
plot.plot(dt_h, v_range, dt_h, normalized_range, dt_h, normalized_range_mean*np.ones(normalized_range.shape))
|
||||||
plot.ylabel("Range")
|
plot.ylabel("Range")
|
||||||
plot.grid()
|
plot.grid()
|
||||||
plot.subplot(NUM_PLOTS, 1, 5)
|
plot.subplot(NUM_PLOTS, 1, 5)
|
||||||
|
|||||||
Reference in New Issue
Block a user