Skip to content

Instantly share code, notes, and snippets.

@port19x
Created November 28, 2022 09:22
Show Gist options
  • Save port19x/0cfbd835d545fdd6d0d15289851f086a to your computer and use it in GitHub Desktop.
Save port19x/0cfbd835d545fdd6d0d15289851f086a to your computer and use it in GitHub Desktop.
Visualization of exercise related data with python + july
import july
from july.utils import date_range
import matplotlib.pyplot as plt
dates = date_range("2022-01-01", "2022-12-31")
a = [0]
data = a*2 + [21] + a*16 + [22] + a*10 + [23] + a*4 + [24] + a*9 + [23] + a + [32] + a*3 + [19] + a*2 + [24] + a*3 + [40] + a*13 + [21] + a*6 + [22] + [24] + a*2 + [21] + a*4 + [22] + a*17 + [22] + a*3 + [28] + a*2 + [21] + a*3 + [34] + a*2 + [22] + a + [22] + a + [26] + a + [23] + a*3 + [21] + a*4 + [22] + a*2 + [19] + a*11 + [24] + 2*a + [70] + a*6 + [22] + a*3 + [22] + a*3 + [23] + a + [21] + [20] + [23] + [22] + a*2 + [21] + [21] + a + [20] + a*20 + [20] + a*4 + [21] + a*47 + [18] + a*12 + [20] + a*28 + [20] + a*4 + [40] + a*4 + [28] + a + [24] + a*2 + [22] + a + [20] + a*4 + [22] + [22] + a*9 + [22] + [22] + a + [22]
july.heatmap(dates, data, title="Joglog", month_grid=True, cmap="github")
#july.calendar_plot(dates, data, title="Joglog", cmap="github")
plt.show
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment