Skip to content

Commit 7a2c155

Browse files
committed
adding the option to control linewith multiplier for the line Depth 2D plot with a default of 2
1 parent 5b7fe9c commit 7a2c155

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

famodel/project.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2188,6 +2188,7 @@ def plot2d(self, ax=None, plot_seabed=False,draw_soil=False,plot_bathymetry=True
21882188

21892189
max_line_depth = kwargs.get('max_line_depth', None) # max depth for line coloring if color_lineDepth is True
21902190
only_shared = kwargs.get('only_shared', False) # if color_lineDepth is True, only color shared lines
2191+
linewidth_multiplier = kwargs.get('linewidth_multiplier', 2) # multiplier for line widths if color_lineDepth is True
21912192
# if axes not passed in, make a new figure
21922193
if ax == None:
21932194
fig, ax = plt.subplots(1,1, figsize=figsize)
@@ -2263,7 +2264,8 @@ def plot2d(self, ax=None, plot_seabed=False,draw_soil=False,plot_bathymetry=True
22632264
"cmap": "Blues",
22642265
"vmin": max_line_depth if max_line_depth else -np.max(self.grid_depth),
22652266
"vmax": 0,
2266-
"only_shared": only_shared
2267+
"only_shared": only_shared,
2268+
"linewidth_multiplier": linewidth_multiplier
22672269
}
22682270
for mooring in self.mooringList.values():
22692271
for name, env in mooring.envelopes.items():

0 commit comments

Comments
 (0)