Skip to content

Commit 2f314fa

Browse files
committed
Small bug fix ms.plot cbar_bath
1 parent 60b7f65 commit 2f314fa

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

moorpy/system.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3796,6 +3796,8 @@ def plot(self, ax=None, bounds='default', rbound=0, color=None, **kwargs):
37963796

37973797
if cbar_bath_size!=1.0: # make sure the colorbar is turned on just in case it isn't when the other colorbar inputs are used
37983798
cbar_bath=True
3799+
else:
3800+
cbar_bath = False
37993801
if cbar_bath:
38003802
fig.colorbar(bath, shrink=cbar_bath_size, label='depth (m)')
38013803

0 commit comments

Comments
 (0)