[plotter] improve time string
This commit is contained in:
+2
-1
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user