Fix xlims
Browse files- heatmap.py +1 -0
heatmap.py
CHANGED
@@ -33,6 +33,7 @@ def plot(heatmap: np.ndarray):
|
|
33 |
fig, ax = plt.subplots()
|
34 |
|
35 |
ax.imshow(heatmap, cmap="Greens")
|
|
|
36 |
ax.set_title("Recent activity")
|
37 |
ax.set_yticklabels(["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"])
|
38 |
return fig, ax
|
|
|
33 |
fig, ax = plt.subplots()
|
34 |
|
35 |
ax.imshow(heatmap, cmap="Greens")
|
36 |
+
ax.set_xbound(0, 6)
|
37 |
ax.set_title("Recent activity")
|
38 |
ax.set_yticklabels(["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"])
|
39 |
return fig, ax
|