Skip to content

Commit

Permalink
enhance docs example
Browse files Browse the repository at this point in the history
  • Loading branch information
t-bltg committed Sep 6, 2023
1 parent 4cd096b commit 07b26b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/reference/plots/heatmap.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,9 @@ CairoMakie.activate!() # hide

x = 10.0.^(1:0.1:4)
y = 1.0:0.1:5.0
z = broadcast((x, y) -> x, x, y')
z = broadcast((x, y) -> x - 10, x, y')

scale = ReversibleScale(log10)
scale = ReversibleScale(x -> asinh(x / 2) / log(10), x -> 2sinh(log(10) * x))
fig, ax, hm = heatmap(x, y, z; colorscale = scale, axis = (; xscale = scale))
Colorbar(fig[1, 2], hm)

Expand Down

0 comments on commit 07b26b0

Please sign in to comment.