EDA Toolkit 0.0.10
Version 0.0.10
Legend Handling:
- The legend is now displayed only if there are valid legend handles (
len(handles) > 0
) and ifshow_legend
is set toTrue
. - The check
ax.get_legend().remove()
ensures that unnecessary legends are removed if they are empty or ifshow_legend
is set toFalse
.
Error Handling:
- Error handling in the
except
block has been enhanced to ensure that any exceptions related to legends or labels are managed properly. The legend handling logic still respects theshow_legend
flag even in cases where exceptions occur.
This update prevents empty legend squares from appearing and maintains the intended default behavior of showing legends only when they contain relevant content.