Flipping the numpy array, better data

This commit is contained in:
Ryan Chen
2023-08-20 09:58:32 -07:00
parent 983c64fe85
commit bfe5274896
2 changed files with 1 additions and 1 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 846 KiB

After

Width:  |  Height:  |  Size: 35 KiB

View File

@@ -72,7 +72,7 @@ def weaknessPerDayOverYear(results):
day = weakness.time.isocalendar().weekday - 1
week_array[week][day] += weakness.total
week_array = np.rot90(np.array(week_array)).round().astype(int)
week_array = np.flipud(np.rot90(np.array(week_array)).round().astype(int))
fig, ax = plt.subplots()
im = ax.imshow(week_array, cmap="Reds")