This code works for any seaborn plot which is based on Grid class. # check axes and find which is have legend Might be too late for gdubs, but just in case anyone's interested - you can use Seaborn (sns) to plot your graphs as usual, just create the new ax (ax2 ax1.twinx()), then forward the appropriate Axes object to your Seaborn function using the 'ax' argument, for example: ax1.bar(x, y) > sns.barplot(xx, yy, axax1) ax2.plot(x, y1, 'o. G = sns.lmplot(x="total_bill", y="tip", hue="smoker", data=tips, markers=, facet_kws=) Seaborn legend is standard matplotlib legend object. This means that the function allows you to map to a figure, rather than an. The Seaborn relplot () function provides a figure-level interface for creating relational plots.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |