A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://proplot.readthedocs.io/en/latest/api/proplot.colors.ContinuousColormap.set_alpha.html below:

ContinuousColormap.set_alpha — ProPlot documentation

ProPlot ContinuousColormap.set_alpha
ContinuousColormap.set_alpha(alpha, coords=None, ratios=None)[source]

Set the opacity for the entire colormap or set up an opacity gradation.

Parameters
  • 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