Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_create():
rgb = cplot.create_colormap(L=50)
cmap = matplotlib.colors.LinearSegmentedColormap.from_list(
"custom", rgb.T, N=len(rgb.T)
)
# cmap = 'gray'
cplot.show_linear(rgb)
cplot.show_circular(rgb, rot=-numpy.pi * 4 / 12)
# cplot.show_circular(rgb, rot=-numpy.pi * 18/12)
cplot.show_kovesi_test_image(cmap)
return