From 8a0318b656f65ec71195360ccc1d8b9a25b50a63 Mon Sep 17 00:00:00 2001 From: Thomas Klaehn Date: Thu, 15 Aug 2019 13:54:01 +0200 Subject: [PATCH] Fix expected distance chart labelling. --- gpx2html/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gpx2html/__init__.py b/gpx2html/__init__.py index f890f95..ebc3c49 100755 --- a/gpx2html/__init__.py +++ b/gpx2html/__init__.py @@ -159,7 +159,7 @@ class Gpx2Html(object): accumulated_distance[year] = acc_year_dist plot_line_chart(accumulated_distance, MONTH_LABELS, - "Accumulated Distance", 'Month', 'km', + "Accumulated Distance", 'Month', 'km/year', os.path.join(self.outfolder, 'acc_dist.png')) # Expected year distance: @@ -178,9 +178,9 @@ class Gpx2Html(object): exp_year_dist.append(expexted_distance) xyz = dict() xyz['driven'] = acc_year_dist - xyz['expected'] = exp_year_dist + xyz['expected @ year end'] = exp_year_dist plot_line_chart(xyz, MONTH_LABELS[:now.month], "Distance", 'Month', - 'km', os.path.join(self.outfolder, 'exp_dist.png')) + 'km/year', os.path.join(self.outfolder, 'exp_dist.png')) end_date = datetime.datetime.today()