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.1.tar.gz
(3.3 kB
view details)
Built Distribution
File details
Details for the file lesley-0.1.1.tar.gz
.
File metadata
- Download URL: lesley-0.1.1.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 69665e02a88a7c17dc120d15335e5a134a237f14feb748cbae82853b4a210bbc |
|
MD5 | 34d8f057e8cb6f3f4b25c8ad210db388 |
|
BLAKE2b-256 | dfa92c212717d5ced07ec0f75b7c071d5a67cfb87429b46d94c110f1d30164b5 |
File details
Details for the file lesley-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: lesley-0.1.1-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 62e083a42518873daebc81c2c563537829691f44dac97508340b0bca00443656 |
|
MD5 | 25e85de71d3b3207db334df35794cd98 |
|
BLAKE2b-256 | c9a2107cfb1e789c5a3eb0846a7bb75116a025fb1a910666d2be8b6c1d7c8a4c |