New graphs, without legends
|  | @ -1 +0,0 @@ | |||
| ,pietervdvn,pietervdvn-Latitude-5591,28.03.2021 22:46,file:///home/pietervdvn/.config/libreoffice/4; | ||||
| Before Width: | Height: | Size: 281 KiB After Width: | Height: | Size: 122 KiB | 
| Before Width: | Height: | Size: 841 KiB After Width: | Height: | Size: 655 KiB | 
| Before Width: | Height: | Size: 309 KiB After Width: | Height: | Size: 121 KiB | 
| Before Width: | Height: | Size: 173 KiB After Width: | Height: | Size: 129 KiB | 
| Before Width: | Height: | Size: 375 KiB After Width: | Height: | Size: 271 KiB | 
| Before Width: | Height: | Size: 204 KiB After Width: | Height: | Size: 171 KiB | 
| Before Width: | Height: | Size: 218 KiB After Width: | Height: | Size: 186 KiB | 
| Before Width: | Height: | Size: 197 KiB After Width: | Height: | Size: 165 KiB | 
| Before Width: | Height: | Size: 273 KiB After Width: | Height: | Size: 129 KiB | 
| Before Width: | Height: | Size: 83 KiB After Width: | Height: | Size: 66 KiB | 
| Before Width: | Height: | Size: 194 KiB After Width: | Height: | Size: 105 KiB | 
| Before Width: | Height: | Size: 339 KiB After Width: | Height: | Size: 145 KiB | 
| Before Width: | Height: | Size: 106 KiB After Width: | Height: | Size: 84 KiB | 
| Before Width: | Height: | Size: 306 KiB After Width: | Height: | Size: 117 KiB | 
| Before Width: | Height: | Size: 782 KiB After Width: | Height: | Size: 382 KiB | 
| Before Width: | Height: | Size: 124 KiB After Width: | Height: | Size: 84 KiB | 
| Before Width: | Height: | Size: 215 KiB After Width: | Height: | Size: 125 KiB | 
| Before Width: | Height: | Size: 137 KiB After Width: | Height: | Size: 90 KiB | 
| After Width: | Height: | Size: 304 KiB | 
| Before Width: | Height: | Size: 116 KiB After Width: | Height: | Size: 79 KiB | 
| Before Width: | Height: | Size: 149 KiB After Width: | Height: | Size: 94 KiB | 
| Before Width: | Height: | Size: 148 KiB After Width: | Height: | Size: 88 KiB | 
| Before Width: | Height: | Size: 97 KiB After Width: | Height: | Size: 85 KiB | 
| Before Width: | Height: | Size: 210 KiB After Width: | Height: | Size: 98 KiB | 
| Before Width: | Height: | Size: 121 KiB After Width: | Height: | Size: 89 KiB | 
| Before Width: | Height: | Size: 162 KiB After Width: | Height: | Size: 108 KiB | 
| Before Width: | Height: | Size: 139 KiB After Width: | Height: | Size: 92 KiB | 
| Before Width: | Height: | Size: 89 KiB After Width: | Height: | Size: 76 KiB | 
| Before Width: | Height: | Size: 137 KiB After Width: | Height: | Size: 93 KiB | 
| Before Width: | Height: | Size: 169 KiB After Width: | Height: | Size: 110 KiB | 
| Before Width: | Height: | Size: 89 KiB After Width: | Height: | Size: 71 KiB | 
| Before Width: | Height: | Size: 155 KiB After Width: | Height: | Size: 86 KiB | 
| Before Width: | Height: | Size: 223 KiB After Width: | Height: | Size: 116 KiB | 
| Before Width: | Height: | Size: 206 KiB After Width: | Height: | Size: 107 KiB | 
| Before Width: | Height: | Size: 237 KiB After Width: | Height: | Size: 120 KiB | 
| Before Width: | Height: | Size: 92 KiB After Width: | Height: | Size: 78 KiB | 
| Before Width: | Height: | Size: 94 KiB After Width: | Height: | Size: 82 KiB | 
| Before Width: | Height: | Size: 626 KiB After Width: | Height: | Size: 361 KiB | 
| Before Width: | Height: | Size: 288 KiB After Width: | Height: | Size: 208 KiB | 
| Before Width: | Height: | Size: 594 KiB After Width: | Height: | Size: 369 KiB | 
| Before Width: | Height: | Size: 396 KiB After Width: | Height: | Size: 201 KiB | 
| Before Width: | Height: | Size: 80 KiB After Width: | Height: | Size: 76 KiB | 
| Before Width: | Height: | Size: 123 KiB After Width: | Height: | Size: 90 KiB | 
| Before Width: | Height: | Size: 123 KiB After Width: | Height: | Size: 87 KiB | 
| Before Width: | Height: | Size: 106 KiB After Width: | Height: | Size: 89 KiB | 
| Before Width: | Height: | Size: 111 KiB After Width: | Height: | Size: 95 KiB | 
| Before Width: | Height: | Size: 119 KiB After Width: | Height: | Size: 99 KiB | 
| Before Width: | Height: | Size: 318 KiB After Width: | Height: | Size: 150 KiB | 
| Before Width: | Height: | Size: 423 KiB After Width: | Height: | Size: 238 KiB | 
| Before Width: | Height: | Size: 391 KiB After Width: | Height: | Size: 200 KiB | 
| Before Width: | Height: | Size: 130 KiB After Width: | Height: | Size: 86 KiB | 
| Before Width: | Height: | Size: 202 KiB After Width: | Height: | Size: 101 KiB | 
| Before Width: | Height: | Size: 237 KiB After Width: | Height: | Size: 96 KiB | 
| Before Width: | Height: | Size: 264 KiB After Width: | Height: | Size: 246 KiB | 
| Before Width: | Height: | Size: 260 KiB After Width: | Height: | Size: 242 KiB | 
| Before Width: | Height: | Size: 254 KiB After Width: | Height: | Size: 236 KiB | 
| Before Width: | Height: | Size: 67 KiB After Width: | Height: | Size: 61 KiB | 
| Before Width: | Height: | Size: 60 KiB After Width: | Height: | Size: 54 KiB | 
| Before Width: | Height: | Size: 70 KiB After Width: | Height: | Size: 64 KiB | 
| Before Width: | Height: | Size: 63 KiB After Width: | Height: | Size: 57 KiB | 
| Before Width: | Height: | Size: 62 KiB After Width: | Height: | Size: 56 KiB | 
| Before Width: | Height: | Size: 66 KiB After Width: | Height: | Size: 60 KiB | 
| Before Width: | Height: | Size: 63 KiB After Width: | Height: | Size: 57 KiB | 
| Before Width: | Height: | Size: 61 KiB After Width: | Height: | Size: 56 KiB | 
| Before Width: | Height: | Size: 73 KiB After Width: | Height: | Size: 67 KiB | 
| Before Width: | Height: | Size: 58 KiB After Width: | Height: | Size: 52 KiB | 
| Before Width: | Height: | Size: 62 KiB After Width: | Height: | Size: 56 KiB | 
| Before Width: | Height: | Size: 60 KiB After Width: | Height: | Size: 54 KiB | 
| Before Width: | Height: | Size: 61 KiB After Width: | Height: | Size: 55 KiB | 
| Before Width: | Height: | Size: 61 KiB After Width: | Height: | Size: 56 KiB | 
| Before Width: | Height: | Size: 64 KiB After Width: | Height: | Size: 58 KiB | 
| Before Width: | Height: | Size: 64 KiB After Width: | Height: | Size: 58 KiB | 
| Before Width: | Height: | Size: 62 KiB After Width: | Height: | Size: 56 KiB | 
| Before Width: | Height: | Size: 63 KiB After Width: | Height: | Size: 58 KiB | 
| Before Width: | Height: | Size: 64 KiB After Width: | Height: | Size: 58 KiB | 
| Before Width: | Height: | Size: 60 KiB After Width: | Height: | Size: 55 KiB | 
| Before Width: | Height: | Size: 66 KiB After Width: | Height: | Size: 60 KiB | 
| Before Width: | Height: | Size: 70 KiB After Width: | Height: | Size: 65 KiB | 
| Before Width: | Height: | Size: 66 KiB After Width: | Height: | Size: 60 KiB | 
| Before Width: | Height: | Size: 71 KiB After Width: | Height: | Size: 65 KiB | 
| Before Width: | Height: | Size: 67 KiB After Width: | Height: | Size: 61 KiB | 
|  | @ -5,6 +5,7 @@ from datetime import datetime | |||
| from matplotlib import pyplot | ||||
| import re | ||||
| 
 | ||||
| useLegend = True | ||||
| 
 | ||||
| def counts(lst): | ||||
|     counts = {} | ||||
|  | @ -129,6 +130,7 @@ def create_usercount_graphs(stats, extra_text=""): | |||
|     pyplot_init() | ||||
|     pyplot.bar(dates, unique_per_day, label='Unique contributors') | ||||
|     pyplot.bar(dates, new_users, label='First time contributor via MapComplete') | ||||
|     if (useLegend): | ||||
|         pyplot.legend() | ||||
|     pyplot.title("Unique contributors" + extra_text + ' with MapComplete (' + str(total) + ' contributors)') | ||||
|     pyplot.ylabel("Number of unique contributors") | ||||
|  | @ -137,6 +139,7 @@ def create_usercount_graphs(stats, extra_text=""): | |||
| 
 | ||||
|     pyplot_init() | ||||
|     pyplot.plot(dates, cumul_uniq, label='Cumulative unique contributors') | ||||
|     if (useLegend): | ||||
|         pyplot.legend() | ||||
|     pyplot.title("Cumulative unique contributors" + extra_text + " with MapComplete - " + str(total) + " contributors") | ||||
|     pyplot.ylabel("Number of unique contributors") | ||||
|  | @ -195,6 +198,7 @@ def summed_changes_per(contents, extraText, sum_column=5): | |||
|         pyplot.bar(keysChanged, valuesChanged, label="Changed") | ||||
|     if len(keysNew) > 0: | ||||
|         pyplot.bar(keysNew, valuesNew, label="New") | ||||
|     if (useLegend): | ||||
|         pyplot.legend() | ||||
|     pyplot.savefig(text) | ||||
| 
 | ||||
|  | @ -269,6 +273,7 @@ def cumulative_changes_per(contents, index, subject, filenameextra="", cutoff=5, | |||
|     else: | ||||
|         cumulative_txt = "Changesets" | ||||
|     pyplot.title(cumulative_txt + " per " + subject + filenameextra + " (" + str(total) + " changesets)") | ||||
|     if (useLegend): | ||||
|         pyplot.legend(loc="upper left", ncol=3) | ||||
|     pyplot.savefig(cumulative_txt + " per " + subject + filenameextra + ".png") | ||||
| 
 | ||||
|  |  | |||