Flipping the numpy array, better data
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 846 KiB After Width: | Height: | Size: 35 KiB |
2
main.py
2
main.py
@@ -72,7 +72,7 @@ def weaknessPerDayOverYear(results):
|
|||||||
day = weakness.time.isocalendar().weekday - 1
|
day = weakness.time.isocalendar().weekday - 1
|
||||||
week_array[week][day] += weakness.total
|
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()
|
fig, ax = plt.subplots()
|
||||||
im = ax.imshow(week_array, cmap="Reds")
|
im = ax.imshow(week_array, cmap="Reds")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user