From 981cda51ad53fbbc469eabcaf0c4a4c38705d0ec Mon Sep 17 00:00:00 2001 From: Noe Brucy Date: Wed, 16 Feb 2022 14:50:12 +0100 Subject: [PATCH] [plot] add nml colors time for hist --- plotter.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plotter.py b/plotter.py index 7f27afc..1511bd9 100644 --- a/plotter.py +++ b/plotter.py @@ -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: