Small improvements to graphs

This commit is contained in:
pietervdvn 2021-06-06 15:35:14 +02:00
parent dd04924c90
commit 8d404b1ba9

View file

@ -117,6 +117,7 @@ def cumulative_users(stats):
def pyplot_init():
pyplot.close('all')
pyplot.figure(figsize=(14, 8), dpi=200)
pyplot.xticks(rotation='vertical')
pyplot.grid()
@ -289,7 +290,7 @@ def cumulative_changes_per(contents, index, subject, filenameextra="", cutoff=5,
if cumulative:
pyplot.fill_between(keys, kv[1], label=msg)
else:
pyplot.plot(keys, kv[1], label=msg)
pyplot.bar(keys, kv[1], label=msg)
if cumulative:
cumulative_txt = "Cumulative changesets"
@ -412,6 +413,8 @@ def clean_input(contents):
theme = row[7][i + 1:-1].lower()
if theme in theme_remappings:
theme = theme_remappings[theme]
if theme.rfind('/') > 0:
theme = theme[theme.rfind('/') + 1 : ]
row[3] = theme
row[4] = row[4].strip().strip("\"")[len("MapComplete "):]
row[4] = re.findall("[0-9]*\.[0-9]*\.[0-9]*", row[4])[0]