[plotter] improve time string

This commit is contained in:
Noe Brucy
2021-04-26 18:57:02 +02:00
parent 31bc3cc209
commit 200091d01b
+2 -1
View File
@@ -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: