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

Uploaded Source

Built Distribution

lesley-0.1.1-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

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

Hashes for lesley-0.1.1.tar.gz
Algorithm Hash digest
SHA256 69665e02a88a7c17dc120d15335e5a134a237f14feb748cbae82853b4a210bbc
MD5 34d8f057e8cb6f3f4b25c8ad210db388
BLAKE2b-256 dfa92c212717d5ced07ec0f75b7c071d5a67cfb87429b46d94c110f1d30164b5

See more details on using hashes here.

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

Hashes for lesley-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 62e083a42518873daebc81c2c563537829691f44dac97508340b0bca00443656
MD5 25e85de71d3b3207db334df35794cd98
BLAKE2b-256 c9a2107cfb1e789c5a3eb0846a7bb75116a025fb1a910666d2be8b6c1d7c8a4c

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