I have used seaborn's kdeplot on some data.
import seaborn as sns
import numpy as np
sns.kdeplot(np.random.rand(100))
Is it possible to return the fwhm from the curve created?
And if not, is there another way to calculate it?
I have a problem with the colorbar of my kdeplot.
It should show the percentage in each bin starting with 0%.
I tried two different ways, but both visualizations are not exactly what I need.
The version with JointGrid starts indeed with 0%, but…
Using seaborn python library, I am trying to make several density plots overlapping each other in the same figure and I want to color/label each of the lines. Using seaborn objects interface I am able to make the density plots within a for loop. But…
I need to visualize a dataset distribution using several multiple method. Then I created a multiplehue_kdeplots function to generate three visual of the same dataset. It's working as expected, but as far as I can see on large dataset, the…
I am trying to understand the meaning of multiple parameter in Seaborn's kdeplot. Below is taken from its documentation,
multiple{{“layer”, “stack”, “fill”}}
Method for drawing multiple elements when semantic mapping creates subsets. Only relevant…
When I run the below code, I get a figure with gradient color (from black to orange). Please look at the attached figure. Whereas I want to get a figure only with single color, orange (not figure with a gradient color). How can I do that?
My…
I am having an issue using any type of 2D kde plotting in seaborn. The y axis seems to be scaled very off.
I am running this on vscode in a jupyter notebook using the most recent version of seaborn
For example here's a joint plot I made using the…
I created a simple seaborn kde plots and wonder whether this is a bug.
My code is:
import matplotlib.pyplot as plt
import seaborn as sns
import numpy as np
sns.kdeplot(np.array([1,2]), cmap="Reds", shade=True, …
i can't find easy way to get minima related to a density curve.
With this kind of data :
import matplotlib.pyplot as plt
from scipy.misc import electrocardiogram
from scipy.signal import find_peaks
import seaborn as sns
test = [7, 7, 7, 7, 8, 7,…
I'm trying to do something like this (Draw a point at the mean peak of a distplot or kdeplot in Seaborn). A'm need to mark point with value 13.72.
but:
list index out of range
string: x = ax.lines[0].get_xdata()
int_rate = df['int_rate']
ax =…
I am using seaborn kernel density estimation to plot probability density contours like so:
import numpy as np
import seaborn as sns
import matplotlib.pyplot as plt
from mpl_toolkits.axes_grid1 import make_axes_locatable
x = np.random.normal(0, 3,…
I'm trying to create a kde plot using seaborn in python but when setting the colorbar values to show in scientific notation I see no difference.
See - making colorbar with scientific notation in seaborn for a heavily related topic.
See -…
When generating bivariate plots like hexbin, pandas generates a legend explaining frequency value for each color shade:
pokemon.plot.hexbin(x='HP', y='Attack', gridsize=30)
I cannot find a similar way to generate such a legend for jointplot and…
I made a poorly worded post with no reproducible example which, understandably, failed to get a proper answer.
Now I am providing a minimal reproducible example - and I hope that this time I will get a better answer.
I have a pandas dataframe which…
Recently I attempted using seaborn to produce a contour plot. The only related function, kdeplot, seemingly only allows to visualize density of data, and it is not possible to provide custom z-index information.
Let me illustrate on a toy example:…