A histogram+colorbar for matplotlib
Project description
mpl-histcolorbar
A drop-in replacement for matplotlib's colorbar that shows the frequency of each color in the mappable.
Getting started
mpl-histcolorbar is available as mpl_histcolorbar on PyPI:
pip install mpl_histcolorbar
Usage
import numpy as np
import matplotlib.pyplot as plt
from mpl_histcolorbar import histcolorbar
rng = np.random.default_rng(seed=42)
data = rng.standard_normal(size=(25, 100))
fig, ax = plt.subplots()
im = ax.imshow(data)
hcb = histcolorbar(fig, im, location="bottom")
Documentation is available at mpl-histcolorbar.readthedocs.io.
License
Original code is licensed under the MIT license. This project directly derives from matplotlib, and any use of this project is subject to the matplotlib license agreement.
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 mpl-histcolorbar-0.1.1.tar.gz.
File metadata
- Download URL: mpl-histcolorbar-0.1.1.tar.gz
- Upload date:
- Size: 10.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b71e1d31d819d10d72a7384eb3379b2d94d893cabc84b14094ac2124dcd4e8ce
|
|
| MD5 |
4738d094692100210fd79d55819f092a
|
|
| BLAKE2b-256 |
99a3f756de1a9067df0a64f5ce3a64524d1cd3df26123679cdcb4b6bdd818f11
|
File details
Details for the file mpl_histcolorbar-0.1.1-py3-none-any.whl.
File metadata
- Download URL: mpl_histcolorbar-0.1.1-py3-none-any.whl
- Upload date:
- Size: 9.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1e685ec5ae89fd28110bfb703ff7f055137ac5b2242a8730e560ccc954ab7517
|
|
| MD5 |
559a0c7b4c847aebb4c0186ab16c4445
|
|
| BLAKE2b-256 |
65ea17461f691348b2a3ee221bbccb78730fcad0c9808b6a1c690e6859015f1a
|