Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Bin size seaborn jointplot

I have an array of 90 000 pairs I want to plot with seaborn jointplot. Is there a way to adjust side histograms bin size? Should I try to plot it with an other package?enter image description here

like image 378
Sylvain Avatar asked Dec 04 '15 18:12

Sylvain


1 Answers

You should be able to use marginal_kws to adjust the bins. Lifting the example from the seaborn documentation here:

g = sns.jointplot("petal_length", "sepal_length", data=iris,
                   marginal_kws=dict(bins=15, rug=True),
                   annot_kws=dict(stat="r"),
                   s=40, edgecolor="w", linewidth=1)
like image 162
iayork Avatar answered Oct 21 '22 19:10

iayork