A new feature to enable plot2d to show the line depth in 2D.#28
Merged
Yuksel-Rudy merged 2 commits intodevfrom Oct 9, 2025
Merged
A new feature to enable plot2d to show the line depth in 2D.#28Yuksel-Rudy merged 2 commits intodevfrom
Yuksel-Rudy merged 2 commits intodevfrom
Conversation
…ture requires the updates in drawLine2d in subsystem.py in MoorPy to be integrated. - The user can provide a set value of maximum depth to show the most transparent part of the line. By default, this is set to the water depth. But sometimes, we might be interested in limiting the depth to the first 200m for instance or to show the depth of which it can be affected by marine growth (e.g., -170m). This is added as a variable in kwargs called max_line_depth.
…ater column: - adding an option to only plot the line color based on depth for shared lines.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: NatLabRockies/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: