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, 1)

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, nrows=3)

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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file lesley-0.1.4.tar.gz.

File metadata

  • Download URL: lesley-0.1.4.tar.gz
  • Upload date:
  • Size: 3.7 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.4.tar.gz
Algorithm Hash digest
SHA256 5d5a7547feb60038e094b3b1802bb3f19c1176d18c256a0651c53d0f0bc64454
MD5 c32885c7a8b8939036a7ddeac1056411
BLAKE2b-256 ed4342f3ef790ef7c6661a6121a279561ecf6b5ad8d9cc21ede9d0098a2efb75

See more details on using hashes here.

File details

Details for the file lesley-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: lesley-0.1.4-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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 df556b734f49dab02e6ba1fc509e87f50936a2d66be7d4a7918f30e1884f66fa
MD5 02e59c51e40174049e69e84d375fdb74
BLAKE2b-256 17dd3cf9f95ca1b5fe695bc540d6eb07e8254f8bc90cf613eb8d27b4547e1123

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