Skip to content

Commit

Permalink
remove datashader depwarn
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonDanisch committed Nov 21, 2023
1 parent 3721c6b commit 6e5e647
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/basic_recipes/datashader.jl
Original file line number Diff line number Diff line change
Expand Up @@ -474,9 +474,7 @@ function convert_arguments(P::Type{<:Union{MeshScatter,Image,Surface,Contour,Con
operation=automatic, local_operation=identity)
pixel = Aggregation.get_aggregation(canvas; operation=operation, local_operation=local_operation)
(xmin, ymin), (xmax, ymax) = extrema(canvas.bounds)
xrange = range(xmin, stop = xmax, length = size(pixel, 1))
yrange = range(ymin, stop = ymax, length = size(pixel, 2))
return convert_arguments(P, xrange, yrange, pixel)
return convert_arguments(P, xmin .. xmax, ymin .. ymax, pixel)
end

# TODO improve color legend API, to not need a fake plot like this
Expand Down

0 comments on commit 6e5e647

Please sign in to comment.