[plot] add nml colors time for hist
This commit is contained in:
@@ -1125,6 +1125,12 @@ class Plotter(Aggregator, BaseProcessor):
|
|||||||
if color is None and colors is not None:
|
if color is None and colors is not None:
|
||||||
if nml_color is None:
|
if nml_color is None:
|
||||||
color = colors[run]
|
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:
|
else:
|
||||||
nml = self.study.get_nml(nml_color, run)
|
nml = self.study.get_nml(nml_color, run)
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in New Issue
Block a user