Skip to content

Commit

Permalink
#6 add reference shoreline buffer to legend
Browse files Browse the repository at this point in the history
  • Loading branch information
2320sharon committed Nov 13, 2023
1 parent de6b0ba commit 5b81c80
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/coastsat/SDS_shoreline.py
Original file line number Diff line number Diff line change
Expand Up @@ -1026,8 +1026,11 @@ def show_detection(
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"
)
ax2.legend(
handles=[orange_patch, white_patch, blue_patch, black_line],
handles=[orange_patch, white_patch, blue_patch, black_line, buffer_patch],
bbox_to_anchor=(1, 0.5),
fontsize=10,
)
Expand Down

0 comments on commit 5b81c80

Please sign in to comment.