Skip to content

Commit

Permalink
Merge branch 'master' into sd/frame-rendering-perf
Browse files Browse the repository at this point in the history
  • Loading branch information
ffreyer authored Oct 16, 2024
2 parents 210a96f + 833be1d commit 6dd0415
Show file tree
Hide file tree
Showing 16 changed files with 77 additions and 331 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
- Changed image, heatmap and surface picking indices to correctly index the relevant matrix arguments. [#4459](https://github.com/MakieOrg/Makie.jl/pull/4459)
- Improved performance of `record` by avoiding unnecessary copying in common cases [#4475](https://github.com/MakieOrg/Makie.jl/pull/4475).
- Fix usage of `AggMean()` and other aggregations operating on 3d data for `datashader` [#4346](https://github.com/MakieOrg/Makie.jl/pull/4346).
- Fixed `pick(scene, rect2)` in WGLMakie [#4488](https://github.com/MakieOrg/Makie.jl/pull/4488)

## [0.21.14] - 2024-10-11

Expand Down
3 changes: 2 additions & 1 deletion CairoMakie/test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,8 @@ excludes = Set([
"Textured meshscatter", # not yet implemented
"Voxel - texture mapping", # not yet implemented
"Miter Joints for line rendering", # CairoMakie does not show overlap here
"Scatter with FastPixel" # almost works, but scatter + markerspace=:data seems broken for 3D
"Scatter with FastPixel", # almost works, but scatter + markerspace=:data seems broken for 3D
"picking", # Not implemented
])

functions = [:volume, :volume!, :uv_mesh]
Expand Down
2 changes: 1 addition & 1 deletion GLMakie/src/picking.jl
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ function pick_native(screen::Screen, rect::Rect2i)
rw, rh = widths(rect)
w, h = size(screen.root_scene)
ppu = screen.px_per_unit[]
if rx > 0 && ry > 0 && rx + rw <= w && ry + rh <= h
if rx >= 0 && ry >= 0 && rx + rw <= w && ry + rh <= h
rx, ry, rw, rh = round.(Int, ppu .* (rx, ry, rw, rh))
sid = zeros(SelectionID{UInt32}, rw, rh)
glReadPixels(rx, ry, rw, rh, buff.format, buff.pixeltype, sid)
Expand Down
272 changes: 0 additions & 272 deletions GLMakie/test/picking.jl

This file was deleted.

1 change: 0 additions & 1 deletion GLMakie/test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ end

# run the unit test suite
include("unit_tests.jl")
include("picking.jl")

@testset "Reference Tests" begin
@testset "refimages" begin
Expand Down
1 change: 1 addition & 0 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ ImageIO = "82e4d734-157c-48bb-816b-45c225c6df19"
InteractiveUtils = "b77e0a4c-d291-57a0-90e8-8db25a27a240"
Interpolations = "a98d9a8b-a2ab-59e6-89dd-64a1c18fca59"
IntervalSets = "8197267c-284f-5f27-9208-e0e47529a953"
InverseFunctions = "3587e190-3f89-42d0-90ee-14403ec27112"
Isoband = "f1662d9f-8043-43de-a69a-05efc1cc6ff4"
KernelDensity = "5ab0869b-81aa-558d-bb23-cbf5423bbe9b"
LaTeXStrings = "b964fa9f-0449-5b57-a5c2-d3ea65f4040f"
Expand Down
22 changes: 11 additions & 11 deletions ReferenceTests/src/tests/examples2d.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1487,12 +1487,12 @@ end
fig = Figure()
xs = vcat([fill(i, i * 1000) for i in 1:4]...)
ys = vcat(RNG.randn(6000), RNG.randn(4000) * 2)
for (i, scale) in enumerate([:area, :count, :width])
ax = Axis(fig[i, 1])
violin!(ax, xs, ys; scale, show_median=true)
Makie.xlims!(0.2, 4.8)
ax.title = "scale=:$(scale)"
end
ax, p = violin(fig[1, 1], xs, ys; scale = :area, show_median=true)
Makie.xlims!(0.2, 4.8); ax.title = "scale=:area"
ax, p = violin(fig[2, 1], xs, ys; scale = :count, mediancolor = :red, medianlinewidth = 5)
Makie.xlims!(0.2, 4.8); ax.title = "scale=:count"
ax, p = violin(fig[3, 1], xs, ys; scale = :width, show_median=true, mediancolor = :orange, medianlinewidth = 5)
Makie.xlims!(0.2, 4.8); ax.title = "scale=:width"
fig
end

Expand Down Expand Up @@ -1688,8 +1688,8 @@ end
fig = Figure()
xs = 2 .* RNG.randn(10) .+ 3
qqnorm(fig[1, 1], xs, qqline = :fitrobust, strokecolor = :cyan, strokewidth = 2)
qqnorm(fig[1, 2], xs, qqline = :none, markersize = 10, marker = Rect, markercolor = :red)
qqnorm(fig[2, 1], xs, qqline = :fit, linestyle = :dash, linewidth = 4)
qqnorm(fig[1, 2], xs, qqline = :none, markersize = 15, marker = Rect, markercolor = :red)
qqnorm(fig[2, 1], xs, qqline = :fit, linestyle = :dash, linewidth = 6)
qqnorm(fig[2, 2], xs, qqline = :identity, color = :orange)
fig
end
Expand All @@ -1698,8 +1698,8 @@ end
fig = Figure()
xs = 2 .* RNG.randn(10) .+ 3; ys = RNG.randn(10)
qqplot(fig[1, 1], xs, ys, qqline = :fitrobust, strokecolor = :cyan, strokewidth = 2)
qqplot(fig[1, 2], xs, ys, qqline = :none, markersize = 10, marker = Rect, markercolor = :red)
qqplot(fig[2, 1], xs, ys, qqline = :fit, linestyle = :dash, linewidth = 4)
qqplot(fig[1, 2], xs, ys, qqline = :none, markersize = 15, marker = Rect, markercolor = :red)
qqplot(fig[2, 1], xs, ys, qqline = :fit, linestyle = :dash, linewidth = 6)
qqplot(fig[2, 2], xs, ys, qqline = :identity, color = :orange)
fig
end
Expand Down Expand Up @@ -1730,7 +1730,7 @@ end
linewidth = 4, linestyle = :dot, markersize = 15, solid_color = :black)
axislegend(ax, position = :lt)

ax, sp = series(fig[2, 1], data, labels=["label $i" for i in 1:4], markersize = 5.0,
ax, sp = series(fig[2, 1], data, labels=["label $i" for i in 1:4], markersize = 10.0,
marker = Circle, markercolor = :transparent, strokewidth = 2.0, strokecolor = :black)
axislegend(ax, position = :lt)

Expand Down
Loading

0 comments on commit 6dd0415

Please sign in to comment.