Skip to content

Commit

Permalink
Dont use deprecated scale kw in hexbin docs (#3257)
Browse files Browse the repository at this point in the history
somehow the scale deprecation hasn't made it into hexbin docs
  • Loading branch information
SimonDanisch authored Sep 26, 2023
1 parent bcb45af commit 2b8b8a1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/reference/plots/hexbin.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ f

### Changing the scale of the number of observations in a bin

You can pass a scale function to via the `scale` keyword, which will be applied to the bin counts before plotting.
You can pass a scale function to via the `colorscale` keyword, which will be applied to the bin counts before plotting.

\begin{examplefigure}{svg = true}
```julia
Expand All @@ -162,9 +162,9 @@ y = randn(100000)

f = Figure()
hexbin(f[1, 1], x, y, bins = 40,
axis = (aspect = DataAspect(), title = "scale = identity"))
hexbin(f[1, 2], x, y, bins = 40, scale=log10,
axis = (aspect = DataAspect(), title = "scale = log10"))
axis = (aspect = DataAspect(), title = "colorscale = identity"))
hexbin(f[1, 2], x, y, bins = 40, colorscale=log10,
axis = (aspect = DataAspect(), title = "colorscale = log10"))
f
```
\end{examplefigure}
Expand Down Expand Up @@ -192,7 +192,7 @@ f, ax, hb = hexbin(a,
colormap = [Makie.to_color(:transparent); Makie.to_colormap(:viridis)],
strokewidth = 0.5,
strokecolor = :gray50,
scale = Makie.pseudolog10)
colorscale = Makie.pseudolog10)

tightlimits!(ax)

Expand Down

0 comments on commit 2b8b8a1

Please sign in to comment.