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.0.tar.gz
(3.1 kB
view details)
Built Distribution
File details
Details for the file lesley-0.1.0.tar.gz
.
File metadata
- Download URL: lesley-0.1.0.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b242921cb83b6ec67af27fff603a5d48c1f34f969f2099990f50509ef9b5505e |
|
MD5 | cda092de77294642b4befbf19eed5b26 |
|
BLAKE2b-256 | 0b5c01de3a7e174f751d490a1b9e798ff4b62e599b9f2cfff90970c6c10f07af |
File details
Details for the file lesley-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: lesley-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.2 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 | 85c65f943b06d36bb2ea217edb4244865a46d1f5ba6d913a76bfa46d8d2a1586 |
|
MD5 | af37118bac0727c10965cd2372f1efbb |
|
BLAKE2b-256 | a6564b5b7ea1ac83cd3da01ff2f54e06407f7e77cc33509bca0c3849e4f2be45 |