Blend transparency with color in 2D images
Blend transparency with color to highlight parts of data with imshow.
A common use for matplotlib.pyplot.imshow is to plot a 2D statistical
map. The function makes it easy to visualize a 2D matrix as an image and add
transparency to the output. For example, one can plot a statistic (such as a
t-statistic) and color the transparency of each pixel according to its p-value.
This example demonstrates how you can achieve this effect.
First we will generate some data, in this case, we'll create two 2D "blobs" in a 2D grid. One blob will be positive, and the other negative.
import matplotlib.pyplot as plt
import numpy as

