Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
}
# ## Add interpolated theme colors
#
# Interpolate from Rhino Dark to 0.5 of the way toward Black
# https://meyerweb.com/eric/tools/color-blend/#506784:000000:1:hex
plotly_clrs["Rhino Darker"] = "#283442"
# https://meyerweb.com/eric/tools/color-blend/#DFE8F3:EBF0F8:1:hex
plotly_clrs["Rhino Light 1.5"] = "#E5ECF6"
# Perceptually uniform colorscale that matches brand colors really well.
# Trim the upper and lower ends so that it doesn't go so close to black and
# white. This makes the scale more visible on both white and black
# backgrounds
bmw_subset = cc.b_linear_bmw_5_95_c86[50:230]
linear_bmw_5_95_c86_n256 = [
[i / (len(bmw_subset) - 1), clr]
for i, clr in enumerate(bmw_subset)
if i % 16 == 0 or i == (len(bmw_subset) - 1)
]
# Plasma colorscale
# -----------------
# Get this from plotly_express logic after integration
plasma_colors = [
"#0d0887",
"#46039f",
"#7201a8",
"#9c179e",
"#bd3786",
}
# ## Add interpolated theme colors
#
# Interpolate from Rhino Dark to 0.5 of the way toward Black
# https://meyerweb.com/eric/tools/color-blend/#506784:000000:1:hex
plotly_clrs['Rhino Darker'] = '#283442'
# https://meyerweb.com/eric/tools/color-blend/#DFE8F3:EBF0F8:1:hex
plotly_clrs['Rhino Light 1.5'] = '#E5ECF6'
# Perceptually uniform colorscale that matches brand colors really well.
# Trim the upper and lower ends so that it doesn't go so close to black and
# white. This makes the scale more visible on both white and black
# backgrounds
bmw_subset = cc.b_linear_bmw_5_95_c86[50:230]
linear_bmw_5_95_c86_n256 = [
[i/(len(bmw_subset)-1), clr] for i, clr in enumerate(bmw_subset)
if i % 16 == 0 or i == (len(bmw_subset)-1)]
jupyterlab_output_clr = 'rgb(17,17,17)'
plotly_diverging = [
[0, '#8e0152'],
[0.1, '#c51b7d'],
[0.2, '#de77ae'],
[0.3, '#f1b6da'],
[0.4, '#fde0ef'],
[0.5, '#f7f7f7'],
[0.6, '#e6f5d0'],
[0.7, '#b8e186'],
[0.8, '#7fbc41'],