Seaborn: Marker size for lmplot

Created on 16 Jan 2015  路  2Comments  路  Source: mwaskom/seaborn

How can I change the marker sizes for a lmplot created from a dataframe?

Most helpful comment

lmplot kwargs get passed through to regplot, and regplot has a scatter_kws parameter that gets passed to plt.scatter. So you want to set the s parameter in that dictionary, which corresponds (a bit confusingly) to the squared markersize. In other words,

sns.lmplot("x", "y", data=data, scatter_kws={"s": 100})

By the way, this kind of usage question is slightly more at home on StackOverflow, because I'm sure other people will wonder this and the search functionality/google prominence of stackoverflow questions is a bit better than github issues. Just use the [seaborn] tag and I'll see it.

All 2 comments

lmplot kwargs get passed through to regplot, and regplot has a scatter_kws parameter that gets passed to plt.scatter. So you want to set the s parameter in that dictionary, which corresponds (a bit confusingly) to the squared markersize. In other words,

sns.lmplot("x", "y", data=data, scatter_kws={"s": 100})

By the way, this kind of usage question is slightly more at home on StackOverflow, because I'm sure other people will wonder this and the search functionality/google prominence of stackoverflow questions is a bit better than github issues. Just use the [seaborn] tag and I'll see it.

You are right, this is not the best place, however I could open an issue to make a simpler and more intuitive documentation about this : )
Thank you for your efforts and work.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Bercio picture Bercio  路  3Comments

amelio-vazquez-reina picture amelio-vazquez-reina  路  3Comments

songololo picture songololo  路  4Comments

queryous picture queryous  路  4Comments

vinay-jayaram picture vinay-jayaram  路  3Comments