Questions tagged [kdeplot]

These question are for seaborn.kdeplot. Also use the python and seaborn tags.

49 questions
0
votes
0 answers

Adjusting the cbar values in kdeplot

So I am relatively new to seaborn and I want to create a kdeplot which can show the relation between two of my datasets (almost 2000 single column entries). The plot comes out fine, but the cbar shows values in decimals (from 0.000065 to 0.002356).…
0
votes
1 answer

Pass probabilities to kdeplot

Suppose I want to plot the following data using sns.kdeplot: np.random.seed(42) x = [np.random.randint(0, 10) for _ in range(10)] x [6, 3, 7, 4, 6, 9, 2, 6, 7, 4] But now, instead of having each value, suppose I have the probability of each…
Bruno Mello
  • 4,448
  • 1
  • 9
  • 39
0
votes
1 answer

How to add a legend for each kdeplot in a figure

I am having little difficulty adding legend to a CDF plot with seaborn. Imports and sample data import numpy as np import matplotlib.plyplot as plt import seaborn as sns X = np.random.randn(20,1,10,4) k = X[:,0,:,0].reshape(-1) l =…
arilwan
  • 3,374
  • 5
  • 26
  • 62
-1
votes
1 answer

Using seaborn kdeplot by group. The equivalent of df.hist(by=‘col1’ ,column=‘col2’)

trying to plot density with kdeplot. However, I can not get it to work exactly how I would like. data = customers groupby gender if I code customers.hist(by ='gender', column='total_trans_ct', figsize = [10,6]);``` I get a histogram divided for M…
pg2006
  • 1
1 2 3
4