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.
pandas>=0.18is now required to install the package. Legacy code for compatibility removed. Fixed a FutureWarning inyearplot.Function
calendarplotrenamed tocalplot.Argument
colorbaradded for functioncalplotto display a colorbar to the right of the heatmap if more than one unique values in plot. Defaults toTrue.Argument
dropzeroadded for functioncalplotandyearplotto specify whether to not fill a cell with a color for days with a zero value. Defaults toTrue.Argument
figsizeadded for functioncalplot. Defaults to a tighter layout automatically adjusted to fit the number of years in plot.Argument
suptitleadded for functioncalplot. Defaults toNone.Argument
yearcoloradded for functioncalplot. Defaults tolightgray(in contrast towhitesmoke, the default value forfillcolor).Default colormap
cmapforyearplot(and hencecalplot) changed toviridis.
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
figsizeforyearplot.Fix colorbar misalignment for plots with different
dpivalues.
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.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4a4d7fe703dc57f05a30109adfe7178dbe053ef9272fc9b0dbb190137d7f23db
|
|
| MD5 |
aca35f0481c977e7fe740e9b6cd4edc5
|
|
| BLAKE2b-256 |
390d7baac7703106c71092bf1b778c0baf451531c8b6611a4e9326943365f5bb
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f3b45aa09e6ac1b8911f457c7aaa730fba485d1b0a5e163a59a34d435fdb78b7
|
|
| MD5 |
7383736dc05490676559b37a462261b8
|
|
| BLAKE2b-256 |
1db0d6ade2d4d3c4a5bdd5367f98a05b3a2b513fc0ab0087d06cadadcf6ea177
|