Seaborn: Change linewidth and markersize independently in factorplot/pointplot?

Created on 5 Apr 2016  路  1Comment  路  Source: mwaskom/seaborn

I realize that in the current code, the markersize is proportional to the linewidth. Is there a way to override this and set the markersize using lines.markersize or some other arguments?

        # Get the size of the plot elements
        lw = mpl.rcParams["lines.linewidth"] * 1.8 * self.scale
        mew = lw * .75
        markersize = np.pi * np.square(lw) * 2

Most helpful comment

You can change the sizes of the points after plotting:

x = np.random.randn(20, 3)
ax = sns.pointplot(data=x)
plt.setp(ax.collections, sizes=[100])

>All comments

You can change the sizes of the points after plotting:

x = np.random.randn(20, 3)
ax = sns.pointplot(data=x)
plt.setp(ax.collections, sizes=[100])
Was this page helpful?
0 / 5 - 0 ratings

Related issues

sofiatti picture sofiatti  路  4Comments

stonebig picture stonebig  路  4Comments

vinay-jayaram picture vinay-jayaram  路  3Comments

amelio-vazquez-reina picture amelio-vazquez-reina  路  4Comments

Bercio picture Bercio  路  3Comments