Small improvements to graphs
This commit is contained in:
parent
dd04924c90
commit
8d404b1ba9
1 changed files with 5 additions and 2 deletions
|
@ -117,6 +117,7 @@ def cumulative_users(stats):
|
||||||
|
|
||||||
|
|
||||||
def pyplot_init():
|
def pyplot_init():
|
||||||
|
pyplot.close('all')
|
||||||
pyplot.figure(figsize=(14, 8), dpi=200)
|
pyplot.figure(figsize=(14, 8), dpi=200)
|
||||||
pyplot.xticks(rotation='vertical')
|
pyplot.xticks(rotation='vertical')
|
||||||
pyplot.grid()
|
pyplot.grid()
|
||||||
|
@ -289,7 +290,7 @@ def cumulative_changes_per(contents, index, subject, filenameextra="", cutoff=5,
|
||||||
if cumulative:
|
if cumulative:
|
||||||
pyplot.fill_between(keys, kv[1], label=msg)
|
pyplot.fill_between(keys, kv[1], label=msg)
|
||||||
else:
|
else:
|
||||||
pyplot.plot(keys, kv[1], label=msg)
|
pyplot.bar(keys, kv[1], label=msg)
|
||||||
|
|
||||||
if cumulative:
|
if cumulative:
|
||||||
cumulative_txt = "Cumulative changesets"
|
cumulative_txt = "Cumulative changesets"
|
||||||
|
@ -412,6 +413,8 @@ def clean_input(contents):
|
||||||
theme = row[7][i + 1:-1].lower()
|
theme = row[7][i + 1:-1].lower()
|
||||||
if theme in theme_remappings:
|
if theme in theme_remappings:
|
||||||
theme = theme_remappings[theme]
|
theme = theme_remappings[theme]
|
||||||
|
if theme.rfind('/') > 0:
|
||||||
|
theme = theme[theme.rfind('/') + 1 : ]
|
||||||
row[3] = theme
|
row[3] = theme
|
||||||
row[4] = row[4].strip().strip("\"")[len("MapComplete "):]
|
row[4] = row[4].strip().strip("\"")[len("MapComplete "):]
|
||||||
row[4] = re.findall("[0-9]*\.[0-9]*\.[0-9]*", row[4])[0]
|
row[4] = re.findall("[0-9]*\.[0-9]*\.[0-9]*", row[4])[0]
|
||||||
|
|
Loading…
Reference in a new issue