seaborn joinplot

880 ワード

import scipy.stats as sci
def pearson(x,y):
    r,p = stats.pearsonr(x,y)
sns.jointplot('Comedy','Adventure',pivot,kind='reg',color='g',stat_func=sci.pearsonr)

アイコンを表示
import scipy.stats as sci
def pearson(x,y):
    r,p = stats.pearsonr(x,y)


h = sns.jointplot(x.loc[:,'perimeter_mean'], x.loc[:,'area_worst'], kind="regg", color="#ce1414",stat_func=sci.pearsonr)
h.set_axis_labels('perimeter_mean', 'area_worst', fontsize=18)


# or set labels via the axes objects
#h.ax_joint.set_xlabel('perimeter_mean', fontweight='bold')

# also possible to manipulate the histogram plots this way, e.g.
#h.ax_marg_y.grid('on')

# labels appear outside of plot area, so auto-adjust
plt.tight_layout()

plt.show()

 
文字サイズの設定