densityplot上に、平均値の付加情報を追加したいのですが、下記のように、Densityの範囲外に突き抜けてしまいます。
densityの範囲内に収まる方法は、何かありますか?
Python
1sns1=sns.kdeplot(df_1[col_list].iloc[:,0], color='red') 2mean_val1 = np.mean(df_1[col_list].iloc[:,0]) 3sns1.axvline(mean_val1, linestyle='dashed', linewidth=2,color='red')
よろしくお願いいたします。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。