Skip to content

Commit 2fe1ac4

Browse files
authored
prepare 0.22.2 (#4826)
* bump versions * update changelog * hot-fix broken legendelements() functions * add the function that's being called
1 parent d7f7fbb commit 2fe1ac4

File tree

9 files changed

+43
-18
lines changed

9 files changed

+43
-18
lines changed

CHANGELOG.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@
22

33
## [Unreleased]
44

5-
- `contourf` (contour filled) now supports _curvilinear_ grids, where `x` and `y` are matrices (`contour` lines were added in v.0.22.0) [#4670](https://github.com/MakieOrg/Makie.jl/pull/4670).
5+
6+
## [0.22.2] - 2025-02-26
7+
8+
- Added support for curvilinear grids in `contourf` (contour filled), where `x` and `y` are matrices (`contour` lines were added in [0.22.0]) [#4670](https://github.com/MakieOrg/Makie.jl/pull/4670).
69
- Updated WGLMakie's threejs version from 0.157 to 0.173, fixing some threejs bugs [#4809](https://github.com/MakieOrg/Makie.jl/pull/4809).
710
- Moved Axis3 clip planes slightly outside to avoid clipping objects on the border with 0 margin [#4742](https://github.com/MakieOrg/Makie.jl/pull/4742)
811
- Fixed an issue with transformations not propagating to child plots when their spaces only match indirectly. [#4723](https://github.com/MakieOrg/Makie.jl/pull/4723)
@@ -30,6 +33,7 @@
3033
- Fixed issue with tick event not triggering in WGLMakie [#4818](https://github.com/MakieOrg/Makie.jl/pull/4818)
3134
- Improved performance of some Blocks, mainly `Textbox` and `Menu` [#4821](https://github.com/MakieOrg/Makie.jl/pull/4821)
3235
- Fixed issue with `PolarAxis` not considering tick visibility in protrusion calculations. [#4823](https://github.com/MakieOrg/Makie.jl/pull/4823)
36+
- Fixed some plots failing to create Legend entries due to missing attributes [#4826](https://github.com/MakieOrg/Makie.jl/pull/4826)
3337

3438
## [0.22.1] - 2025-01-17
3539

@@ -754,7 +758,8 @@ All other changes are collected [in this PR](https://github.com/MakieOrg/Makie.j
754758
- Fixed rendering of `heatmap`s with one or more reversed ranges in CairoMakie, as in `heatmap(1:10, 10:-1:1, rand(10, 10))` [#1100](https://github.com/MakieOrg/Makie.jl/pull/1100).
755759
- Fixed volume slice recipe and added docs for it [#1123](https://github.com/MakieOrg/Makie.jl/pull/1123).
756760

757-
[Unreleased]: https://github.com/MakieOrg/Makie.jl/compare/v0.22.1...HEAD
761+
[Unreleased]: https://github.com/MakieOrg/Makie.jl/compare/v0.22.2...HEAD
762+
[0.22.2]: https://github.com/MakieOrg/Makie.jl/compare/v0.22.1...v0.22.2
758763
[0.22.1]: https://github.com/MakieOrg/Makie.jl/compare/v0.22.0...v0.22.1
759764
[0.22.0]: https://github.com/MakieOrg/Makie.jl/compare/v0.21.18...v0.22.0
760765
[0.21.18]: https://github.com/MakieOrg/Makie.jl/compare/v0.21.17...v0.21.18

CairoMakie/Project.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "CairoMakie"
22
uuid = "13f3f980-e62b-5c42-98c6-ff1f3baf88f0"
33
author = ["Simon Danisch <sdanisch@gmail.com>"]
4-
version = "0.13.1"
4+
version = "0.13.2"
55

66
[deps]
77
CRC32c = "8bf52ea8-c179-5cab-976a-9e18b702a9bc"
@@ -24,7 +24,7 @@ FileIO = "1.1"
2424
FreeType = "3, 4.0"
2525
GeometryBasics = "0.5"
2626
LinearAlgebra = "1.0, 1.6"
27-
Makie = "=0.22.1"
27+
Makie = "=0.22.2"
2828
PrecompileTools = "1.0"
2929
julia = "1.3"
3030

GLMakie/Project.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "GLMakie"
22
uuid = "e9467ef8-e4e7-5192-8a1a-b1aee30e663a"
3-
version = "0.11.2"
3+
version = "0.11.3"
44

55
[deps]
66
ColorTypes = "3da002f7-5984-5a60-b8a6-cbb66c0b333f"
@@ -30,7 +30,7 @@ FreeTypeAbstraction = "0.10"
3030
GLFW = "3.4.3"
3131
GeometryBasics = "0.5"
3232
LinearAlgebra = "1.0, 1.6"
33-
Makie = "=0.22.1"
33+
Makie = "=0.22.2"
3434
Markdown = "1.0, 1.6"
3535
MeshIO = "0.5"
3636
ModernGL = "1"

MakieCore/Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "MakieCore"
22
uuid = "20f20a25-4f0e-4fdf-b5d1-57303727442b"
33
authors = ["Simon Danisch"]
4-
version = "0.9.0"
4+
version = "0.9.1"
55

66
[deps]
77
ColorTypes = "3da002f7-5984-5a60-b8a6-cbb66c0b333f"

Project.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "Makie"
22
uuid = "ee78f7c6-11fb-53f2-987a-cfe4a2b5a57a"
33
authors = ["Simon Danisch", "Julius Krumbiegel"]
4-
version = "0.22.1"
4+
version = "0.22.2"
55

66
[deps]
77
Animations = "27a7e980-b3e6-11e9-2bcd-0b925532e340"
@@ -97,7 +97,7 @@ KernelDensity = "0.5, 0.6"
9797
LaTeXStrings = "1.2"
9898
LinearAlgebra = "1.0, 1.6"
9999
MacroTools = "0.5"
100-
MakieCore = "=0.9"
100+
MakieCore = "=0.9.1"
101101
Markdown = "1.0, 1.6"
102102
MathTeXEngine = "0.5, 0.6"
103103
Observables = "0.5.5"

RPRMakie/Project.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "RPRMakie"
22
uuid = "22d9f318-5e34-4b44-b769-6e3734a732a6"
33
authors = ["Simon Danisch"]
4-
version = "0.8.1"
4+
version = "0.8.2"
55

66
[deps]
77
Colors = "5ae59095-9a9b-59fe-a467-6f913c188581"
@@ -17,7 +17,7 @@ Colors = "0.9, 0.10, 0.11, 0.12, 0.13"
1717
FileIO = "1.6"
1818
GeometryBasics = "0.5"
1919
LinearAlgebra = "1.0, 1.6"
20-
Makie = "=0.22.1"
20+
Makie = "=0.22.2"
2121
Printf = "1.0, 1.6"
2222
RadeonProRender = "0.3.2"
2323
julia = "1.3"

WGLMakie/Project.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "WGLMakie"
22
uuid = "276b4fcb-3e11-5398-bf8b-a0c2d153d008"
33
authors = ["SimonDanisch <sdanisch@gmail.com>"]
4-
version = "0.11.1"
4+
version = "0.11.2"
55

66
[deps]
77
Bonito = "824d6782-a2ef-11e9-3a09-e5662e0c26f8"
@@ -27,7 +27,7 @@ FreeTypeAbstraction = "0.10"
2727
GeometryBasics = "0.5"
2828
Hyperscript = "0.0.3, 0.0.4, 0.0.5"
2929
LinearAlgebra = "1.0, 1.6"
30-
Makie = "=0.22.1"
30+
Makie = "=0.22.2"
3131
Observables = "0.5.1"
3232
PNGFiles = "0.3, 0.4"
3333
PrecompileTools = "1.0"

src/makielayout/blocks/legend.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -503,9 +503,9 @@ function legendelements(plot::Union{Violin, BoxPlot, CrossBar}, legend)
503503
color = color,
504504
strokecolor = choose_scalar(plot.strokecolor, legend[:polystrokecolor]),
505505
strokewidth = choose_scalar(plot.strokewidth, legend[:polystrokewidth]),
506-
colormap = plot.colormap,
507-
colorrange = plot.colorrange,
508-
alpha = plot.alpha,
506+
colormap = get(plot, :colormap, :viridis),
507+
colorrange = get(plot, :colorrange, automatic),
508+
alpha = get(plot, :alpha, 1f0),
509509
)]
510510
end
511511

@@ -533,7 +533,7 @@ function legendelements(plot::Union{Poly, Density}, legend)
533533
colormap = plot.colormap,
534534
colorrange = plot.colorrange,
535535
linestyle = plot.linestyle,
536-
alpha = plot.alpha,
536+
alpha = get(plot, :alpha, 1f0)
537537
)]
538538
end
539539

@@ -720,7 +720,7 @@ function get_labeled_plots(ax; merge::Bool, unique::Bool)
720720
end
721721

722722
get_plots(p::AbstractPlot) = [p]
723-
# NOTE: this is important, since we know that `get_plots` is only ever called on the toplevel,
723+
# NOTE: this is important, since we know that `get_plots` is only ever called on the toplevel,
724724
# we can assume that any plotlist on the toplevel should be decomposed into individual plots.
725725
# However, if the user passes a label argument with a legend override, what do we do?
726726
get_plots(p::PlotList) = haskey(p.attributes, :label) && p.attributes[:label] isa Pair ? [p] : p.plots

test/SceneLike/makielayout.jl

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -507,6 +507,26 @@ end
507507
@test_nowarn Legend(f[1, 1], [[]], ["No legend elements"])
508508
end
509509

510+
@testset "Legend data gathering" begin
511+
function make_fig(plot_func, args...)
512+
f = Figure()
513+
ax = Axis(f[1, 1])
514+
plot_func(ax, args..., label="test")
515+
Legend(f[1, 2], ax)
516+
return f
517+
end
518+
519+
@test make_fig(density!, rand(100)) isa Figure
520+
@test make_fig(poly!, Rect2f(0,0,1,1)) isa Figure
521+
@test make_fig(band!, rand(3), rand(3), rand(3)) isa Figure
522+
@test make_fig(violin!, rand(1:3, 10), rand(10)) isa Figure
523+
@test make_fig(boxplot!, rand(1:3, 10), rand(10)) isa Figure
524+
@test make_fig(crossbar!, rand(3), rand(3), rand(3) .-1, rand(3) .+1) isa Figure
525+
@test make_fig(scatter!, rand(3)) isa Figure
526+
@test make_fig(lines!, rand(3)) isa Figure
527+
@test make_fig(linesegments!, rand(8)) isa Figure
528+
end
529+
510530
@testset "ReversibleScale" begin
511531
@test ReversibleScale(identity).inverse === identity
512532
@test ReversibleScale(log).inverse === exp

0 commit comments

Comments
 (0)