Skip to content

Commit

Permalink
plot enprettification
Browse files Browse the repository at this point in the history
  • Loading branch information
calbaker committed Jan 30, 2025
1 parent 960459d commit 3d70bdc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cal_and_val/thermal/val_hev.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
for ((key, df_cal), sd_cal) in zip(cal_mod_obj.dfs.items(), sds_cal):
for obj_fn in cal_mod_obj.obj_fns:
fig, ax = plt.subplots(2, 1, sharex=True)
ax.suptitle(key)
ax[0].plot(
sd_cal['veh']['history']['time_seconds'],
obj_fn[0](sd_cal),
Expand All @@ -52,4 +53,4 @@
)
ax[1].legend()
ax[1].set_ylabel("Speed [m/s]")

plt.savefig(plot_save_path / f"{key}.svg")

0 comments on commit 3d70bdc

Please sign in to comment.