Questions tagged [displot]

These questions are for seaborn displot, which is a figure-level plot for hist, kde, and ecdf plots. When using this tag, also select the seaborn and python tags.

33 questions
1
vote
1 answer

How to expose alpha parameter in Seaborn displot

Is there anyway to expose alpha parameter in seaborn displot function? Here is some sample code: import pandas as pd import numpy as np import seaborn as sns A = np.random.standard_normal(20) B = np.random.standard_normal(20) C =…
jmich738
  • 1,565
  • 3
  • 24
  • 41
1
vote
2 answers

displot does not show part of the title and xlabel

This is a snippet of my code: import pandas as pd import seaborn as sns filename = 'MY_FILENAME_GOES_HERE' enctimes=pd.read_csv(filename,skiprows=10) sns.displot(enctimes,kde=True, legend=False, bins=bins).set(title='Encoding Times %s, number…
0
votes
2 answers

How to create a figure with subplots for each category in a pandas column

I have a pandas df which I would like to plot in a displot with seaborn. I have a variable to plot, A, and a variable to hue, B. The problem is that the B variable has ca. 50 different values, so I would like to automatically create a grid of each…
datadatadata
  • 119
  • 6
0
votes
0 answers

How to make 3 displots appear in 1 row

I would like to create a row with 3 plots with seaborn displot, but now they appear one under another. I've tried to use the following code: f, axes = plt.subplots(ncols=3, figsize=(15, 6)) which worked while using seaborn distplot, but here it…
user4t48u
  • 31
  • 4
0
votes
1 answer

How to make custom row and column labels in displot

I have the following code using the seaborn library in python that plots a grid of histograms from data from within the seaborn library: import pandas as pd import matplotlib.pyplot as plt import seaborn as sns, numpy as np from pylab import…
0
votes
0 answers

My Histplot looks like a part of a displot

I have created a couple of sns histplots, but they dont look like a normal histogram. Dataframe name = vehicledata_cleaned Fuel - Diesal, Petrol, Hyrid, other. Price - 0, 100, 1000, 1100 1200, 3000, 3500, 4000…
Niamh
  • 1
  • 1
0
votes
1 answer

How to interpret color intensity in displot?

I am new to seaborn, and I was going through documentation and examples. I have attached the plot below. How can we interpret the color intensity in this plot?
0
votes
0 answers

seaborn: common_norm in displot affecting not only row/col, but also hue?

I want to plot a histogram of percentages using displot in seaborn (version 0.12.0), which creates a FacetGrid of subplots. Percentages should be separately calculate for each subplot. In general, one can achieve this using the parameter…
mikhub
  • 13
  • 4
0
votes
0 answers

Bivariate histogram with user-defined contour lines in python

I am trying to create a plot. I want to have a bi-variate histogram, which I successfully realized by using seaborn's sns.displot. Now I want to add some contour lines. However, these contours should not represent the density of data points in my…
0
votes
2 answers

How to display the line color in the legend with kdeplot

I am wanting to overlay different 2D density plots over each other using the kdeplot() function from seaborn, however the color of the contours aren't appearing in the legend. How would I be able to update the legend with the color? Code…
Vecko
  • 21
  • 1
0
votes
0 answers

Adding secondary axis to seaborn displot (kde)

I have a data frame containing returns, dates and a dummy variable that indicates whether a Fed meeting is happening on that date or not. My data frame contains approximately returns on 3000 days, 139 of which are Fed meeting dates. The data frame…
0
votes
1 answer

Overlay kde plot using Seaborn displot

I'm trying to recreate a plot that I made with seaborn distplot but using displot, since distplot is being depreciated. How do I make the displot overlay the two columns? Here is the original code to create using distplot: import pandas as pd import…
jmich738
  • 1,565
  • 3
  • 24
  • 41
0
votes
0 answers

seaborn from distplot to displot new input parameters

as Seaborn warned to prefer 'displot' to future deprecated 'distplot', I'm trying to change old codes. Unfortunately I find a bit hard finding corresponding parameters for several inputs. Just an example: below I start with the old 'distplot' code…
Polar
  • 147
  • 1
  • 11
0
votes
1 answer

Curve the Kernel Density Estimate (KDE) in seaborn displot

When I try to plot my data in the form of histogram using seaborn displot: plot = sns.displot( data=z, kde=True, kind="hist", bins=3000, legend=True, aspect=1.8 ).set(title='Error Distribution') The curve for KDE is plotted in the form of…
Raghav Arora
  • 148
  • 1
  • 14
0
votes
1 answer

displot 'FacetGrid' object is not callable

I wrote the following code in order to plot a 2x2 displot with seaborn: df = pd.DataFrame( {'Re' : x, 'n' : y, 'Type' : tp, 'tg' : tg, 'gt' : gt }) g = sns.FacetGrid(df, row='gt', col='tg',…
Vaggelis
  • 17
  • 4