ax.tick_params(which="minor", length=3, color="r")
ax.legend(loc="upper right")
if (vals < 0).any():
ax.axhline(color="k", linewidth=.5)
if bumpdates:
After Change
// Are there any negative temperatures in vals?
// If so, highlight the temp=0 axis so it"s easier to see.
for v in vals:
if v < 0:
ax.axhline(color="k", linewidth=.5)
break
if bumpdates:
for bumpdate in bumpdates:
ax.axvline(x=bumpdate, color="r", linewidth=1)
// label=str(bumpdate.time()))