You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But I can't find how to get them from a Seaborn histogram. I tried:
import seaborn as so
hist = so.displot(....)
vals, bins = hist[0], hist[1]
But it dindn't work. Could you tell me how I can get values and bins from Seaborn histogram, plase?
If there is no way to do that, I think it's a feture you shoud add for future versions. Indeed, it would be very usefull to make fits, especially with scipy.optimize...
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
When I create a histogram with Matplotlib, I can easily get it's values and bins by the command:
import matplotlib.pyplot as plt
hist = plt.hist(....)
vals, bins = hist[0], hist[1]
But I can't find how to get them from a Seaborn histogram. I tried:
import seaborn as so
hist = so.displot(....)
vals, bins = hist[0], hist[1]
But it dindn't work. Could you tell me how I can get values and bins from Seaborn histogram, plase?
If there is no way to do that, I think it's a feture you shoud add for future versions. Indeed, it would be very usefull to make fits, especially with scipy.optimize...
Thank you in advance for your help!
Cordially,
Beta Was this translation helpful? Give feedback.
All reactions