Skip to content

Commit

Permalink
Updated legend count check (#523)
Browse files Browse the repository at this point in the history
Signed-off-by: ISP akm <[email protected]>
  • Loading branch information
xygyo77 authored Aug 27, 2024
1 parent 4bb99f3 commit 11c50bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/caret_analyze/plot/visualize_lib/bokeh/util/legend.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def create_legends(

legends: list[Legend] = []
for i in range(0, len(self._legend_items)+separate_num, separate_num):
if not full_legends and i >= max_legends:
if not full_legends and i >= max_legends and len(self._legend_items) > i:
logger.warning(
f'The maximum number of legends drawn by default is {max_legends}. '
'If you want all legends to be displayed, '
Expand Down

0 comments on commit 11c50bf

Please sign in to comment.