You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to change the number of columns in the legend so that there is only one row (ncol = number of groups).
To do so I thought I could take the ax returned from venn and use the method .get_legend_handles_labels() which I could pass to ax.legend to also specify ncol. However, ax.get_legend_handles_labels() returns two empty lists, which when passed to ax.legend cause the legend to disappear.
The potential work-around is to just pass the keys of the dictionary musicians to ax.legend and also specify ncol (this produces a figure as expected), but still not sure why ax.get_legend_handles_labels() doesn't work.
The text was updated successfully, but these errors were encountered:
I'd like to change the number of columns in the legend so that there is only one row (ncol = number of groups).
To do so I thought I could take the
ax
returned fromvenn
and use the method.get_legend_handles_labels()
which I could pass toax.legend
to also specifyncol
. However,ax.get_legend_handles_labels()
returns two empty lists, which when passed toax.legend
cause the legend to disappear.The potential work-around is to just pass the keys of the dictionary
musicians
toax.legend
and also specify ncol (this produces a figure as expected), but still not sure whyax.get_legend_handles_labels()
doesn't work.The text was updated successfully, but these errors were encountered: