I want to know the location of the pins on the graph shown in the seaborn distplot.

Asked 2 years ago, Updated 2 years ago, 44 views

Regarding the graph displayed in the seaborn distplot,
I'd like to know the position and height of each bottle, is there any way?

python pandas

2022-09-30 19:54

1 Answers

I wrote the code using the link below, and I think I can get the height with this.
Get data points from Seaborn distplot

import seaborn as sns
import numpy as np
from print import print
sns.set()
np.random.seed(0)
x = np.random.rand(100)
print([h.get_height() for hinsns.distrib(x).patches])
"""
>[1.2707405677074517,
    0.8132739633327691,
    1.0674220768742593,
    1.0674220768742597,
    0.8641035860410673]
"""

Enter a description of the image here

By the way, regarding the link above,
If you type seaborn display bin get height in Google search, it was the fourth from the top.Our stackoverflow has a lot of accumulated knowledge, so before you ask a question, you may be able to solve it more quickly than you ask here.


2022-09-30 19:54

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.