Earth Colorscale
Mix.install([
{:plotly_ex, "~> 0.3"},
{:kino, "~> 0.18"}
])
Section
"Earth" mimics topographic colour conventions — blue for low (water), green and
brown for mid (land), white for high (snow). Well-suited for geographic data.
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: "Earth"))
|> Figure.update_layout(title: "Earth Colorscale Heatmap")
|> Plotly.show()