Skip to main content

Build status Code quality Maintainability rating License PyPI version Downloads

Calplot creates heatmaps from Pandas time series data.

Plot Pandas time series data sampled by day in a heatmap per calendar year using matplotlib.

Installation

To install the latest release via PyPI using pip:

pip install calplot

Changelog

Package calplot was started as a fork of calmap with the addition of new arguments for easier customization.

See CHANGES.rst for changelog.

Usage

See API documentation.

Examples

The following examples are run in a Jupyter notebook.

import calplot
import numpy as np; np.random.seed(sum(map(ord, 'calplot')))
import pandas as pd
all_days = pd.date_range('1/1/2019', periods=730, freq='D')
days = np.random.choice(all_days, 500)
events = pd.Series(np.random.randn(len(days)), index=days)
calplot.calplot(events)
Example calendar heatmap with default configuration
all_days = pd.date_range('1/1/2019', periods=360, freq='D')
days = np.random.choice(all_days, 500)
events = pd.Series(np.random.randn(len(days)), index=days)
calplot.calplot(events, edgecolor=None, cmap='YlGn')
Example calendar heatmap with edgecolor set to None
calplot.calplot(events, yearlabel_kws={'color': 'black'}, cmap='YlGn')
Example calendar heatmap with yearcolor set to black
calplot.calplot(events, textformat='{:.0f}', textfiller='-', cmap='YlGn')
Example calendar heatmap with textformat and textfiller set
calplot.calplot(events, dropzero=False, cmap='YlGn')
Example calendar heatmap with dropzero set to False
calplot.calplot(events, colorbar=False, suptitle='Random data from standard normal distribution', cmap='YlGn')
Example calendar heatmap with colorbar set to False and suptitle set
calplot.calplot(events, linewidth=0, cmap='YlGn')
Example calendar heatmap with linewidth set to 0

Metadata

Release files for calplot 0.1.7.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for calplot 0.1.7.1
File Size Uploaded
calplot-0.1.7.1.tar.gz 8.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for calplot 0.1.7.1
File Interpreter ABI Platform
calplot-0.1.7.1-py3-none-any.whl Python 3 none any Details

Total release size: 16.4 kB

Release files / calplot-0.1.7.1.tar.gz

Download URL calplot-0.1.7.1.tar.gz
Size 8.4 kB
Tags Source
SHA-256 checksum
How to use checksums
5c354fe1d9db2a93bfc84adb90c7e65842078b604db0b9a6c8e51d292aef90bf
BLAKE2b-256 checksum
How to use checksums
e05fc657d114b90e5fcad8d997d44b251529dfbecc6b3e5df260b58d2dd86771
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0.post20210125 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.7.9

Release files / calplot-0.1.7.1-py3-none-any.whl

Download URL calplot-0.1.7.1-py3-none-any.whl
Size 8.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0de38b0b54f8d3841e9a7e97b4f6c1b66e02e33540ed074e2d662e58372a6d29
BLAKE2b-256 checksum
How to use checksums
ff99ab09588f733fe47c6e5b964fd89e1019c1493e1086755d88e6df9191f7f0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0.post20210125 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.7.9

Release history Release notifications | RSS feed

0.1.7.5

1 release file

This release

0.1.7.1 This release

2 release files

0.1.7

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.2

2 release files

0.1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page