calplot 0.1.7.5
pip install calplot
Released:
Calendar heatmaps from Pandas time series data
Navigation
Verified details
These details have been verified by PyPIMaintainers
๐ Avatar for tomkwok from gravatar.comtomkwok
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: MIT License
- Author: Tom Kwok
Classifiers
- Intended Audience
- Operating System
- Programming Language
- Topic
Project description
๐ Build status
๐ 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 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 calplotimport numpy as np; np.random.seed(sum(map(ord, 'calplot')))import pandas as pdall_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 configurationall_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 Nonecalplot.calplot(events, yearlabel_kws={'color': 'black'}, cmap='YlGn')
๐ Example calendar heatmap with yearcolor set to blackcalplot.calplot(events, textformat='{:.0f}', textfiller='-', cmap='YlGn')
๐ Example calendar heatmap with textformat and textfiller setcalplot.calplot(events, colorbar=False, cmap='YlGn')
๐ Example calendar heatmap with colorbar set to Falsecalplot.calplot(events, suptitle='Random data from standard normal distribution', cmap='YlGn')
๐ Example calendar heatmap with suptitle setcalplot.calplot(events, linewidth=0, cmap='YlGn')
๐ Example calendar heatmap with linewidth set to 0Project details
Verified details
These details have been verified by PyPIMaintainers
๐ Avatar for tomkwok from gravatar.comtomkwok
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: MIT License
- Author: Tom Kwok
Classifiers
- Intended Audience
- Operating System
- Programming Language
- Topic
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
File details
Details for the file calplot-0.1.7.5.tar.gz.
File metadata
- Download URL: calplot-0.1.7.5.tar.gz
- Upload date:
- Size: 132.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3c1781bd1ded9ef23fa58d512c7e2a3e3c2e4e81da96d870b9223004aaa6fcfa
|
|
| MD5 |
750161f1746a21534960131a8186db01
|
|
| BLAKE2b-256 |
85f1ce2770863c146ba22470ec37aa7e9dce07a7fdfe4c796171e926a972baf4
|
