Skip to main content

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.

Example calendar heatmap

Package calplot is a fork of calmap with the following changes and additions.

  • pandas>=0.18 is now required to install the package. Legacy code for compatibility removed. Fixed a FutureWarning in yearplot.

  • Function calendarplot renamed to calplot.

  • Argument colorbar added for function calplot to display a colorbar to the right of the heatmap if more than one unique values in plot. Defaults to True.

  • Argument dropzero added for function calplot and yearplot to specify whether to not fill a cell with a color for days with a zero value. Defaults to True.

  • Argument figsize added for function calplot. Defaults to a tighter layout automatically adjusted to fit the number of years in plot.

  • Argument suptitle added for function calplot. Defaults to None.

  • Argument yearcolor added for function calplot. Defaults to lightgray (in contrast to whitesmoke, the default value for fillcolor).

  • Default colormap cmap for yearplot (and hence calplot) changed to viridis.

Usage

See the documentation.

Installation

To install the latest release via PyPI using pip:

pip install calplot

Todo

  • Option to add a seperating line between months.

  • Option to plot a rounded value for the day or plot the day of month for each mesh grid cell.

  • Option to change horizontal alignment (for example, to the left) for month labels.

  • Fix figsize for yearplot.

  • Fix colorbar misalignment for plots with different dpi values.

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

calplot-0.1.1.tar.gz (7.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

calplot-0.1.1-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

File details

Details for the file calplot-0.1.1.tar.gz.

File metadata

  • Download URL: calplot-0.1.1.tar.gz
  • Upload date:
  • Size: 7.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.6

File hashes

Hashes for calplot-0.1.1.tar.gz
Algorithm Hash digest
SHA256 4a4d7fe703dc57f05a30109adfe7178dbe053ef9272fc9b0dbb190137d7f23db
MD5 aca35f0481c977e7fe740e9b6cd4edc5
BLAKE2b-256 390d7baac7703106c71092bf1b778c0baf451531c8b6611a4e9326943365f5bb

See more details on using hashes here.

File details

Details for the file calplot-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: calplot-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 9.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.6

File hashes

Hashes for calplot-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f3b45aa09e6ac1b8911f457c7aaa730fba485d1b0a5e163a59a34d435fdb78b7
MD5 7383736dc05490676559b37a462261b8
BLAKE2b-256 1db0d6ade2d4d3c4a5bdd5367f98a05b3a2b513fc0ab0087d06cadadcf6ea177

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page