Skip to content

Commit 4ffd8bd

Browse files
authored
Fix bug with Makie 0.22.3 (#646)
The internal function `numbers_to_colors` had another positional arg added. Fixes #645
1 parent 6d6a2ed commit 4ffd8bd

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## Unreleased
44

5+
## v0.10.3 -2024-04-11
6+
7+
- Fixed breakage due to change of internal function in Makie 0.22.3 [#646](https://github.com/MakieOrg/AlgebraOfGraphics.jl/pull/646).
8+
59
## v0.10.2 - 2025-03-31
610

711
- Revert accidental docstring changes [#638](https://github.com/MakieOrg/AlgebraOfGraphics.jl/pull/638).

Project.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "AlgebraOfGraphics"
22
uuid = "cbdf2221-f076-402e-a563-3d30da359d67"
33
authors = ["Pietro Vertechi", "Julius Krumbiegel"]
4-
version = "0.10.2"
4+
version = "0.10.3"
55

66
[deps]
77
Accessors = "7d9f7c33-5ae7-4f3b-8dc6-eff91059b697"
@@ -48,7 +48,7 @@ GridLayoutBase = "0.6, 0.7, 0.8, 0.9, 0.10, 0.11"
4848
Isoband = "0.1"
4949
KernelDensity = "0.6"
5050
Loess = "0.5.1, 0.6.1"
51-
Makie = "0.21.13, 0.22"
51+
Makie = "0.22.3"
5252
NaturalSort = "1"
5353
PlotUtils = "1"
5454
PolygonOps = "0.1.1"

src/algebra/layers.jl

+3-1
Original file line numberDiff line numberDiff line change
@@ -544,14 +544,16 @@ function full_rescale(data, aes::Type{AesColor}, scale::ContinuousScale)
544544
lowclip = Makie.to_color(@something(props.lowclip, first(colormap)))
545545
highclip = Makie.to_color(@something(props.highclip, last(colormap)))
546546
nan_color = Makie.to_color(@something(props.nan_color, RGBAf(0, 0, 0, 0)))
547+
interpolate = true
547548
Makie.numbers_to_colors(
548549
Makie.convert_single_argument(collect(data)),
549550
colormap,
550551
identity,
551552
colorrange,
552553
lowclip,
553554
highclip,
554-
nan_color
555+
nan_color,
556+
interpolate,
555557
)
556558
end
557559

0 commit comments

Comments
 (0)