Turn off marginal distribution axes on jointplot using seaborn package

后端 未结 1 497
夕颜
夕颜 2021-02-07 22:13

I like this particular plot and the ability to pass a function to the stat_func keyword to quickly plot up and visualize relationships between variables, but there\'s one thing.

相关标签:
1条回答
  • 2021-02-07 22:49

    You could use JointGrid directly:

    from scipy import stats
    
    g = sns.JointGrid(x, y, ratio=100)
    g.plot_joint(sns.regplot)
    g.annotate(stats.pearsonr)
    g.ax_marg_x.set_axis_off()
    g.ax_marg_y.set_axis_off()
    

    enter image description here

    0 讨论(0)
提交回复
热议问题