From 200091d01b55d78c40af2808f4a1b48180d6af47 Mon Sep 17 00:00:00 2001 From: Noe Brucy Date: Mon, 26 Apr 2021 18:57:02 +0200 Subject: [PATCH] [plotter] improve time string --- plotter.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plotter.py b/plotter.py index 0398489..1bde1de 100644 --- a/plotter.py +++ b/plotter.py @@ -1029,8 +1029,9 @@ class Plotter(Aggregator, BaseProcessor): if put_time: time = self.save.root._v_attrs.time * self.comp.info["unit_time"] time_str = self.pp_params.plot.time_fmt.format( - time.express(unit_time), unit_time.latex + time.express(unit_time), unit_time.latex.replace("text", "math") ) + time_str = f"${time_str}$" if label is not None and len(label) > 0: label = label + " | " + time_str else: