Skip to content

Commit

Permalink
Fix in plotting
Browse files Browse the repository at this point in the history
  • Loading branch information
mauro3 committed May 23, 2024
1 parent 6929240 commit af32487
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/PyPlotExt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit af32487

Please sign in to comment.