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.0.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

lesley-0.1.0-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

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

Hashes for lesley-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b242921cb83b6ec67af27fff603a5d48c1f34f969f2099990f50509ef9b5505e
MD5 cda092de77294642b4befbf19eed5b26
BLAKE2b-256 0b5c01de3a7e174f751d490a1b9e798ff4b62e599b9f2cfff90970c6c10f07af

See more details on using hashes here.

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

Hashes for lesley-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 85c65f943b06d36bb2ea217edb4244865a46d1f5ba6d913a76bfa46d8d2a1586
MD5 af37118bac0727c10965cd2372f1efbb
BLAKE2b-256 a6564b5b7ea1ac83cd3da01ff2f54e06407f7e77cc33509bca0c3849e4f2be45

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