From 5d4f2b0c5bf53a9c9707665657a6f60411d10957 Mon Sep 17 00:00:00 2001 From: Sharon Fitzpatrick Date: Wed, 15 Nov 2023 11:02:10 -0800 Subject: [PATCH] increase shoreline buffer opacity --- src/coastsat/SDS_shoreline.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/coastsat/SDS_shoreline.py b/src/coastsat/SDS_shoreline.py index f24eeaf..e2f3a60 100644 --- a/src/coastsat/SDS_shoreline.py +++ b/src/coastsat/SDS_shoreline.py @@ -1019,7 +1019,7 @@ 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") @@ -1027,7 +1027,7 @@ def show_detection( 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],