'Legend text missing in the bubble plot (Python)

## Bubble Chart
plt.figure(figsize=(10,6))
sns.scatterplot(x="PetalWidth",y="SepalWidth",data=Iris2,size="SepalLength",sizes=(20,200),palette="muted")
plt.title("Bubble Chart")
plt.legend(loc="center right",bbox_to_anchor=(1.3,0.5))
plt.grid()
plt.show()

The "SepalLength" missing in the legend

after the hue be added



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source