Calendar heatmaps from Pandas time series data
Project description
Calplot creates heatmaps from Pandas time series data.
Plot Pandas time series data sampled by day in a heatmap per calendar year, similar to GitHub’s contributions plot, using matplotlib.
Package calplot is a fork of calmap with the following changes and additions.
(Since version 0.1.5) Added argument
edgecolor
for functioncalplot
andyearplot
to specify color of seperation lines between months. Defaults togray
. Note that lines can be turned off by setting argument toNone
without quotes.(Since version 0.1.4)
pandas>=1.1
is now required to install the package. Legacy code for compatibility removed. Fixed a FutureWarning inyearplot
.(Since version 0.1.2) Added argument
dropzero
for functioncalplot
andyearplot
to specify whether to not fill a cell with a color for days with a zero value. Defaults toTrue
.(Since version 0.1.1) Renamed function
calendarplot
tocalplot
.(Since version 0.1.1) Added argument
colorbar
for functioncalplot
to display a colorbar to the right of the heatmap if more than one unique values in plot. Defaults toTrue
.(Since version 0.1.1) Added argument
figsize
for functioncalplot
. Defaults to a tighter layout automatically adjusted to fit the number of years in plot.(Since version 0.1.1) Added argument
suptitle
for functioncalplot
. Defaults toNone
.(Since version 0.1.1) Added argument
yearcolor
for functioncalplot
. Defaults tolightgray
. Note that the default color is in contrast towhitesmoke
, which is the default value forfillcolor
.(Since version 0.1.1) Added argument
monthlabelha
for functioncalplot
andyearplot
to specify horizontal alignment for month labels. Defaults tocenter
.(Since version 0.1.1) Changed default colormap
cmap
for functioncalplot
toviridis
.
Usage
See the documentation.
Installation
To install the latest release via PyPI using pip:
pip install calplot
Todo
Option to plot a rounded value for the day, or to plot the day of month for each mesh grid cell.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.