From af32487ad0efab580e9846217f8f6cab4c0fcc95 Mon Sep 17 00:00:00 2001 From: Mauro Werder Date: Thu, 23 May 2024 16:00:48 +0200 Subject: [PATCH] Fix in plotting --- ext/PyPlotExt.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/PyPlotExt.jl b/ext/PyPlotExt.jl index 8311c79..f32c5e4 100644 --- a/ext/PyPlotExt.jl +++ b/ext/PyPlotExt.jl @@ -50,7 +50,7 @@ pits2vecs(x, y, pits) = (x[[p.I[1] for p in pits if p!=CartesianIndex(-1,-1)]], Plot uparea, or another variable. If no pits should be plotted, use `[]`. """ function plotarea(x, y, area, pits; prefn=log10, cbar=true) - px, py = pits2vecs(x, y, pits) + px, py = collect.(pits2vecs(x, y, pits)) fig, axs = subplots() heatmap(x, y, prefn.(area), cbar=cbar) scatter(px, py, 1, "r")