crameri:vanimo#
| collection | category | license | authors | source |
|---|---|---|---|---|
| crameri | Diverging | MIT | Fabio Crameri | https://zenodo.org/record/5501399 |
from cmap import Colormap
cm = Colormap("crameri:vanimo") # case insensitive
import matplotlib.pyplot as plt
from cmap import Colormap
plt.imshow(data, cmap=Colormap("crameri:vanimo").to_mpl())
import plotly.express as px
from cmap import Colormap
px.imshow(data, color_continuous_scale=Colormap("crameri:vanimo").to_plotly())
import napari
from cmap import Colormap
napari.imshow(data, colormap=Colormap("crameri:vanimo").to_napari())
napari.run()
background: #FFCDFD;
background: linear-gradient(90deg, #FFCDFD 0%, #F2B5EC 3.22581%, #E69FDB 6.45161%, #D989CB 9.67742%, #CC76BB 12.9032%, #BE65AC 16.129%, #B0569D 19.3548%, #A0488D 22.5806%, #8E3C7C 25.8065%, #793169 29.0323%, #632756 32.2581%, #4D1F43 35.4839%, #3A1931 38.7097%, #2B1524 41.9355%, #20141B 45.1613%, #1B1415 48.3871%, #191712 51.6129%, #1A1C11 54.8387%, #1F2512 58.0645%, #263115 61.2903%, #2F3F18 64.5161%, #394E1C 67.7419%, #445E20 70.9677%, #4F6D25 74.1935%, #597B2A 77.4194%, #648A30 80.6452%, #6F9938 83.871%, #7CAA43 87.0968%, #8BBD54 90.3226%, #9BD16A 93.5484%, #ACE786 96.7742%, #BEFDA5 100%);
import altair as alt
from cmap import Colormap
# df: a DataFrame with columns x, y and value
alt.Chart(df).mark_rect().encode(
x="x:O",
y="y:O",
color=alt.Color(
"value:Q", scale=alt.Scale(range=Colormap("crameri:vanimo").to_altair())
),
)
from bokeh.plotting import figure, show
from cmap import Colormap
p = figure()
p.image(
image=[data], x=0, y=0, dw=1, dh=1,
color_mapper=Colormap("crameri:vanimo").to_bokeh(),
)
show(p)
from vispy import app, scene
from cmap import Colormap
canvas = scene.SceneCanvas(show=True)
view = canvas.central_widget.add_view()
scene.visuals.Image(data, cmap=Colormap("crameri:vanimo").to_vispy(), parent=view.scene)
view.camera = scene.PanZoomCamera(aspect=1)
view.camera.set_range()
app.run()
import pygfx as gfx
from cmap import Colormap
image = gfx.Image(
gfx.Geometry(grid=gfx.Texture(data, dim=2)),
gfx.ImageBasicMaterial(
clim=(data.min(), data.max()), map=Colormap("crameri:vanimo").to_pygfx()
),
)
gfx.show(image)
import pyqtgraph as pg
from cmap import Colormap
view = pg.image(data)
view.setColorMap(Colormap("crameri:vanimo").to_pyqtgraph())
pg.exec()
import ee
from cmap import Colormap
ee.Initialize(project="my-project") # your Google Cloud project
elevation = ee.Image("CGIAR/SRTM90_V4")
image = elevation.visualize(
min=0, max=3000, palette=Colormap("crameri:vanimo").to_gee()
)
See also usage with external libraries.
crameri:vanimo
crameri:vanimo
Perceptual lightness#
Lightness (J′) measured in CAM02 Uniform Color Space (CAM02-UCS)