Skip to content

Commit

Permalink
increase shoreline buffer opacity
Browse files Browse the repository at this point in the history
  • Loading branch information
2320sharon committed Nov 15, 2023
1 parent 269a4f7 commit 5d4f2b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/coastsat/SDS_shoreline.py
Original file line number Diff line number Diff line change
Expand Up @@ -1019,15 +1019,15 @@ def show_detection(
# create image 2 (classification)
ax2.imshow(im_class)
if masked_array is not None:
ax2.imshow(masked_array, cmap=masked_cmap, alpha=0.37)
ax2.imshow(masked_array, cmap=masked_cmap, alpha=0.45)
ax2.plot(sl_pix[:, 0], sl_pix[:, 1], "k.", markersize=3)
ax2.axis("off")
orange_patch = mpatches.Patch(color=colours[0, :], label="sand")
white_patch = mpatches.Patch(color=colours[1, :], label="whitewater")
blue_patch = mpatches.Patch(color=colours[2, :], label="water")
black_line = mlines.Line2D([], [], color="k", linestyle="-", label="shoreline")
buffer_patch = mpatches.Patch(
color="grey", alpha=0.37, label="Reference shoreline buffer"
color="grey", alpha=0.45, label="Reference shoreline buffer"
)
ax2.legend(
handles=[orange_patch, white_patch, blue_patch, black_line, buffer_patch],
Expand Down

0 comments on commit 5d4f2b0

Please sign in to comment.