format fix for unitless values

Former-commit-id: 4c31d66d5e6b8dfb932df0513d9cdf4cd7b89061
This commit is contained in:
Michael T. Kelbaugh
2020-04-02 08:43:24 -04:00
parent 975991ce3a
commit fc66c5d98d

View File

@@ -148,8 +148,9 @@ def plot_mongo_doc(
if projection == 4326
else ("(x, y)", "($x, $y)")
)
title = f"{dataset} ({unit}, {year})" if unit else f"{dataset} ({year})"
fig = figure(
title=f"{dataset} ({unit}, {year})",
title=title,
tools=TOOLS,
plot_width=plot_width,
plot_height=plot_height,