Set the opacity for the entire colormap or set up an opacity gradation.
alpha (float
or sequence of float
) – If float, this is the opacity for the entire colormap. If sequence of float, the colormap traverses these opacity values.
coords (sequence of float
, optional) – Colormap coordinates for the opacity values. The first and last coordinates must be 0
and 1
. If alpha
is not scalar, the default coordinates are np.linspace(0, 1, len(alpha))
.
ratios (sequence of float
, optional) – Relative extent of each opacity transition segment. Length should equal len(alpha) + 1
. For example cmap.set_alpha((1, 1, 0), ratios=(2, 1))
creates a transtion from 100 percent to 0 percent opacity in the right third of the colormap.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4