Skip to content

๐Ÿ“Š A histogram+colorbar for matplotlib

License

Notifications You must be signed in to change notification settings

jnahlers/mpl-histcolorbar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

73 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

mpl-histcolorbar logo

mpl-histcolorbar

PyPI version Coverage Status Documentation Status

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")

Example

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.

About

๐Ÿ“Š A histogram+colorbar for matplotlib

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages