add support for python 3

This commit is contained in:
Noe Brucy
2020-06-24 00:37:28 +02:00
committed by Noe Brucy
parent ffa5c90168
commit 6bddd1e477
7 changed files with 46 additions and 24 deletions
+3 -1
View File
@@ -222,6 +222,8 @@ class Plotter(Aggregator, BaseProcessor):
if str(e) in [
"'LocatableAxes' object does not support indexing",
"'AxesSubplot' object does not support indexing",
"'AxesSubplot' object is not subscriptable",
"'LocatableAxes' object is not subscriptable",
]:
self._plot_rule(
rule,
@@ -786,7 +788,7 @@ class Plotter(Aggregator, BaseProcessor):
time_str = self.pp_params.plot.time_fmt.format(
time.express(time_unit), time_unit.latex
)
if len(label) > 0:
if label is not None and len(label) > 0:
label = label + " | " + time_str
else:
label = time_str