Greens Colorscale
Mix.install([
{:plotly_ex, "~> 0.3"},
{:kino, "~> 0.18"}
])
Section
"Greens" is a sequential single-hue colorscale from light green to dark green.
Good for data representing growth, health, or environmental metrics.
alias Plotly.{Figure, Heatmap}
z = for i <- 0..9, do: (for j <- 0..9, do: :math.sin(i / 3.0 + j / 5.0) * 10)
Figure.new()
|> Figure.add_trace(Heatmap.new(z: z, colorscale: "Greens"))
|> Figure.update_layout(title: "Greens Colorscale Heatmap")
|> Plotly.show()