Remove seaborn lineplot legend title

前端 未结 3 525
无人共我
无人共我 2020-12-02 15:43

I would like to remove the title from my seaborn lineplot legend. I tried using this answer to no avail:

import matplotlib.pyplot as plt
import seaborn as sn         


        
3条回答
  •  不知归路
    2020-12-02 16:11

    import seaborn as sns
    g = sns.lineplot(x="myXs", y="myYs", hue="myHue", data=mydf)
    g.legend_.set_title(None)
    

提交回复
热议问题