我正在繪制一些資料sns.jointplot,我希望散點圖中的資料保持為點,而側面的直方圖則改為 kde 圖。我嘗試使用該kind='kde'引數,但這會將內部資料更改為不再像散點圖中的點。我已經搜索了一下,找不到方法。
這是我的情節代碼:
plota = sns.jointplot( data = Hub_all_data, y = "Within module degree", x= "Participation coefficient", s=100, joint_kws=({'color':'green'}), marginal_kws=({'color': 'green'}))
plota.ax_joint.axvline(x=np.quantile(Pall,.25), color = "black", linestyle = "--")
plota.ax_joint.axvline(x=np.quantile(Pall,.75), color = "black", linestyle = "--")
plota.ax_joint.axhline(y=np.quantile(within_module_degree,.25), color = "black", linestyle = "--")
plota.ax_joint.axhline(y=np.quantile(within_module_degree,.75), color = "black", linestyle = "--")
plota.ax_marg_x.set_xlim(0, .6)
plota.ax_marg_y.set_ylim(-3, 2)
plota.set_axis_labels('P', 'Z', fontsize=16)

uj5u.com熱心網友回復:
您可以創建一個
轉載請註明出處,本文鏈接:https://www.uj5u.com/caozuo/461695.html
標籤:Python matplotlib 海运
