Fix expected distance chart labelling.

This commit is contained in:
Thomas Klaehn 2019-08-15 13:54:01 +02:00
parent e1c68a55b3
commit 8a0318b656

View File

@ -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()