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 created 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)
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')
calplot.calplot(events, yearlabel_kws={'color': 'black'}, cmap='YlGn')
calplot.calplot(events, textformat='{:.0f}', textfiller='-', cmap='YlGn')
calplot.calplot(events, colorbar=False, cmap='YlGn')
calplot.calplot(events, suptitle='Random data from standard normal distribution', cmap='YlGn')
calplot.calplot(events, linewidth=0, cmap='YlGn')
Metadata
Release files for calplot 0.1.7.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| calplot-0.1.7.5.tar.gz | 132.3 kB | Details |
Release files / calplot-0.1.7.5.tar.gz
| Download URL | calplot-0.1.7.5.tar.gz |
|---|---|
| Size | 132.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3c1781bd1ded9ef23fa58d512c7e2a3e3c2e4e81da96d870b9223004aaa6fcfa
|
|
BLAKE2b-256 checksum How to use checksums |
85f1ce2770863c146ba22470ec37aa7e9dce07a7fdfe4c796171e926a972baf4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.9.15
|