Skip to content

Commit

Permalink
fix for longer label
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmkrieger committed Nov 29, 2024
1 parent 40ddb05 commit 1323485
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion prody/dynamics/plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ def showProjection(ensemble=None, modes=None, projection=None, *args, **kwargs):

one_label = False
if labels is not None:
if len(labels) == 1:
if len(labels) == 1 or np.isscalar(labels):
one_label = True
kwargs['label'] = labels

Expand Down

0 comments on commit 1323485

Please sign in to comment.