A new feature to enable plot2d to show the line depth in 2D. #28
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This feature requires the updates in drawLine2d in subsystem.py in MoorPy to be integrated. These changes are provided in this PR: NREL/MoorPy#58
Here's an example of showing the first 170m of the water column:

This pull request adds the ability to color mooring lines by depth in the
plot2dmethod of theProjectclass, including support for a colorbar and related options. The main changes introduce a newcolor_lineDepthargument, handle color mapping and validation, and update the plotting logic accordingly.Enhancements to 2D Plotting of Moorings:
color_lineDepthargument to theplot2dmethod inproject.py, allowing users to color mooring lines based on their depth.max_line_depthoption in the plotting kwargs to control the depth range for color mapping.drawLine2dfor mooring lines to pass the newdepth_cmap_settingsparameter, enabling the actual depth-based coloring.User Interface Improvements: