Skip to content

Commit fbc80a7

Browse files
authored
fix: makie0.22 Change deprecation warnings to errors (#140)
1 parent 573b9f5 commit fbc80a7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ext/FHistMakieExt.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,11 +258,13 @@ function Makie.convert_arguments(P::Type{<:Heatmap}, h2d::Hist2D)
258258
convert_arguments(P, binedges(h2d)..., replace(counts, z => NaN))
259259
end
260260

261+
_to_endpoints(binedge) = (first(binedge), last(binedge))
262+
261263
Makie.MakieCore.plottype(::Hist3D) = Volume
262264
function Makie.convert_arguments(P::Type{<:Volume}, h::Hist3D)
263265
counts = bincounts(h)
264266
z = zero(eltype(counts))
265-
convert_arguments(P, binedges(h)..., replace(counts, z => NaN))
267+
convert_arguments(P, _to_endpoints.(binedges(h))..., replace(counts, z => NaN))
266268
end
267269

268270
"""

0 commit comments

Comments
 (0)