Skip to content

Commit

Permalink
Enhanced legend display function
Browse files Browse the repository at this point in the history
  • Loading branch information
young-x-skyee committed Dec 1, 2024
1 parent ef2196f commit e2eb5f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kymata/plot/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -734,7 +734,7 @@ def _custom_label(transform_name):
if show_legend:
split_legend_at_n_transforms = 15
legend_n_col = 2 if len(custom_handles) > split_legend_at_n_transforms else 1
if hidden_transforms_in_legend and len(not_shown) > 0:
if hidden_transforms_in_legend and len(not_shown) > 0 and legend_display is None:
if len(not_shown) > split_legend_at_n_transforms:
legend_n_col = 2
# Plot dummy legend for other transforms which are included in model selection but not plotted
Expand Down

0 comments on commit e2eb5f6

Please sign in to comment.