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.3.tar.gz
(3.6 kB
view details)
Built Distribution
File details
Details for the file lesley-0.1.3.tar.gz
.
File metadata
- Download URL: lesley-0.1.3.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 32200de9dc9483d700f489daa2d5a4cb8b069fb3ae28297e870cbb39e5e276b5 |
|
MD5 | 8b3d5e196a9c3955116a0f45cca56fd1 |
|
BLAKE2b-256 | 10058bd1d99250e87dba455893db77b69afdd6255fe765e68a8e47916adf052c |
File details
Details for the file lesley-0.1.3-py3-none-any.whl
.
File metadata
- Download URL: lesley-0.1.3-py3-none-any.whl
- Upload date:
- Size: 3.5 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 | 2102db97c3cd8043217555c55cb5a7cd91d894225cfe18050be97f2469f28bd4 |
|
MD5 | 04e4dacabe1e8c7254e0e311a4972fd8 |
|
BLAKE2b-256 | 2c8f578cda63b863fa4c9a7dad74d6c8de95139b03b04053c0c3c1c72150dbd6 |