-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Description
Using this code produced two legends, likely due to a conflict between ultraplot and seaborn.
import ultraplot as uplt
import seaborn as sns
fig, axs = uplt.subplots(journal='nat2')
df = sns.load_dataset("titanic")
sns.violinplot(data=df, x="class", y="age", hue="alive")
axs.legend(
loc='lower right',
frameon=False,
title=None,
)

Everything works normally when ultraplot is not used.
import seaborn as sns
import matplotlib.pyplot as plt
df = sns.load_dataset("titanic")
sns.violinplot(data=df, x="class", y="age", hue="alive")
plt.legend(
loc='lower right',
frameon=False,
title=None,
)

Metadata
Metadata
Assignees
Labels
No labels