How to use the cplot.main.get_srgb1 function in cplot

To help you get started, we’ve selected a few cplot examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github nschloe / cplot / cplot / tripcolor.py View on Github external
def tripcolor(triang, z):
    rgb = get_srgb1(z)

    # https://github.com/matplotlib/matplotlib/issues/10265#issuecomment-358684592
    n = z.shape[0]
    z2 = numpy.arange(n)
    cmap = matplotlib.colors.LinearSegmentedColormap.from_list("mymap", rgb, N=n)
    plt.tripcolor(triang, z2, shading="gouraud", cmap=cmap)
    return

cplot

Plot complex-valued functions

GPL-3.0
Latest version published 2 years ago

Package Health Score

39 / 100
Full package analysis