Skip to main content

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)

calendar heatmap output example

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

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

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)

Uploaded Source

Built Distribution

lesley-0.1.2-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

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

Hashes for lesley-0.1.2.tar.gz
Algorithm Hash digest
SHA256 b63387749d40a558f84452d21cebd41d2998b914e56e8f7fc12675d4cf49b165
MD5 cec34cd25bc644682592c1ac73958ed7
BLAKE2b-256 c07487b9de352df0088394fafa695b9418c15e3620053ce39c8f08c74344d95f

See more details on using hashes here.

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

Hashes for lesley-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 698606accce794a2222e48679f829280efa0fa8c69aff8500f3969fe43b6e5de
MD5 03162585bbd1164045ada6fd142e0cfb
BLAKE2b-256 ada3802441cc311b873db57cebc74a77569166387aaec299131e96a39f66b3c9

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page