[plot] add nml colors time for hist

This commit is contained in:
Noe Brucy
2022-02-16 14:50:12 +01:00
parent 3c4db1658e
commit 981cda51ad
+6
View File
@@ -1125,6 +1125,12 @@ class Plotter(Aggregator, BaseProcessor):
if color is None and colors is not None:
if nml_color is None:
color = colors[run]
elif nml_color == "time":
time = (
self.current_processor.time
* self.current_processor.info["unit_time"]
).express(unit_time)
color = colors(time)
else:
nml = self.study.get_nml(nml_color, run)
try: