Metadata-Version: 2.1
Name: lesley
Version: 0.1.3
Summary: Plot calendar heatmap in python using Altair. Inspired from July
Author-email: M Iqbal Tawakal <mit.iqi@gmail.com>
Project-URL: Repository, https://github.com/mitbal/lesley.git
Keywords: heatmap,visualisation,calendar,daily,matplotlib,github plot,month plot,date plot,plot,plotting
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: OS Independent
Requires-Python: >=3.11
Description-Content-Type: text/markdown
Requires-Dist: numpy>=1.26.4
Requires-Dist: seaborn>=0.13.2
Requires-Dist: matplotlib>=3.9.0
Requires-Dist: altair>=4.2.2

# 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)
```
![calendar heatmap output example](example1.png)

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)
```
![single month plot](example2.png)

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)
```
![all month plot](example3.png)
