Plot calendar heatmap in python using Altair. Inspired from July
Project description
Lesley
Lesley is a library to create a heatmap of daily data in for the whole calendar year. Inspired by July (https://github.com/e-hulten/july)
How to use
Plot the whole year heatmap
dates = pd.date_range(start='2024-01-01', end='2024-12-31')
values = np.random.randint(0, 10, size=len(dates))
lesley.cal_heatmap(dates, values)
Plot a single month
dates = pd.date_range(start='2024-01-01', end='2024-12-31')
values = np.random.randint(0, 10, size=len(dates))
lesley.month_plot(dates, values, 3)
Plot all month in single year
dates = pd.date_range(start='2024-01-01', end='2024-12-31')
values = np.random.randint(0, 10, size=len(dates))
lesley.calendar_plot(dates, values)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
lesley-0.1.2.tar.gz
(3.4 kB
view details)
Built Distribution
File details
Details for the file lesley-0.1.2.tar.gz
.
File metadata
- Download URL: lesley-0.1.2.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b63387749d40a558f84452d21cebd41d2998b914e56e8f7fc12675d4cf49b165 |
|
MD5 | cec34cd25bc644682592c1ac73958ed7 |
|
BLAKE2b-256 | c07487b9de352df0088394fafa695b9418c15e3620053ce39c8f08c74344d95f |
File details
Details for the file lesley-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: lesley-0.1.2-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 698606accce794a2222e48679f829280efa0fa8c69aff8500f3969fe43b6e5de |
|
MD5 | 03162585bbd1164045ada6fd142e0cfb |
|
BLAKE2b-256 | ada3802441cc311b873db57cebc74a77569166387aaec299131e96a39f66b3c9 |