Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Psychrochart | 74 | 4 months ago | 23 | November 12, 2019 | 12 | mit | Jupyter Notebook | |||
A Python 3 library to make psychrometric charts and overlay information on them. | ||||||||||
Heatmap | 12 | 4 years ago | 2 | Python | ||||||
A Tool for Ploting the Heatmap Overlay Image | ||||||||||
Arduino Rx5808 Testing | 2 | 6 years ago | mit | Arduino | ||||||
Some Arduino RX5808 Lap Timer experiments | ||||||||||
Graphotti | 1 | 4 years ago | mit | Python | ||||||
A library for creating plots that can easily be combined and rendered on different plotting libraries | ||||||||||
Transparent_imshow | 1 | a year ago | mit | Python | ||||||
Pixel-dependent transparency with matplotlib's imshow |
This is a simple wrapper around matplotlib's imshow
function, which
allows to produce images with pixel-dependent transparency. This can
be particularly useful to overlay several images.
The solution implemented was inspired by this post.
Below is a simple example that shows how to overlay two arrays of data,
by using the function transp_imshow
which is provided in this package.
import numpy as np
import matplotlib.pyplot as plt
from transparent_imshow import transp_imshow
# Create some data
x, y = np.meshgrid( np.linspace(-2, 2, 100),
np.linspace(-2, 2, 100) )
data1 = y
data2 = np.exp( -x**2 -y**2 )
# Plot with transparency
plt.imshow( data1, cmap='Spectral' )
transp_imshow( data2, cmap='Greys' )
The code produces the following image:
For more information on the function transp_imshow
, see its docstring.
In order to install this package, type:
pip install git+https://github.com/RemiLehe/transparent_imshow