seaborn Questions

3

Solved

I would like to change colors in this plot, it visualizes data properly but as you can see it isn't easy to read because all this colors are very similar (7 classes). Is there simple way to do it? ...
Breathe asked 16/1, 2021 at 22:23

4

Solved

I have a seaborn scatter plot (lmplot) with over 10K points. In order to perceive all the data, it works better when the plot size is larger (making the markers relatively small) and the alpha on t...
Culmiferous asked 8/2, 2018 at 20:54

13

Solved

I am using matplotlib to make scatter plots. Each point on the scatter plot is associated with a named object. I would like to be able to see the name of an object when I hover my cursor over the p...
Sapir asked 26/10, 2011 at 20:38

3

Solved

Suppose we have an array with numbers between 0 and 1: arr=np.array([ 0. , 0. , 0. , 0. , 0.6934264 , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0.6934264 , 0. , 0.6934264 , 0. , 0. , 0. , 0. , 0.25146...
Metamer asked 28/8, 2017 at 4:10

4

I have a 752 data points which i need to plot, I have plotted the data on bar plot using seaborn library in python , but graph i get is very unclear and I am not able to analyze anything through g...
Lyrist asked 19/1, 2018 at 5:53

2

Solved

This seems so simple, but for the life of me I can't figure it out. I am new to Python and Seaborn, and I am doing all this online at PythonAnywhere. All I am trying to do is create a simple barp...
Cardinalate asked 29/6, 2018 at 16:3

3

Solved

I'm using sns.lmplot to plot a linear regression, dividing my dataset into two groups with a categorical variable. For both x and y, I'd like to manually set the lower bound on both plots, but leav...
Iorgo asked 8/8, 2014 at 22:12

19

Solved

How can I plot the empirical CDF of an array of numbers with Matplotlib in Python? I'm looking for the CDF analog of Pylab’s hist function. One thing I can think of is: from scipy.stats import cumf...
Lazos asked 9/7, 2010 at 2:14

3

Solved

I want to fill the area under a line plot so it looks as the picture below: instead of built on the following .csv file: 01-01-97 1 01-02-97 2 01-03-97 3 ... 01-11-17 251 01-12-17 252 01-01...
Gard asked 29/8, 2018 at 19:0

2

I would like to remove the lines that separate the cells in a saved pdf. I tried setting the linewidth=0.0, but the lines are still showing. import pandas as pd import numpy as np import seaborn a...
Nomothetic asked 20/11, 2014 at 13:14

3

How can I plot a gaussian fit onto a histplot, as previously done by the deprecated distplot? import seaborn as sns import numpy as np from scipy.stats import norm x = np.random.normal(size=500) * ...
Wojak asked 31/10, 2020 at 11:57

2

Solved

The seaborn styles shipped by Matplotlib are deprecated since 3.6, as they no longer correspond to the styles shipped by seaborn. However, they will remain available as 'seaborn-v0_8-<style>...
Tosspot asked 7/12, 2022 at 11:51

5

I'm having problem placing Seaborn Jointplot inside a multicolumn subplot. import pandas as pd import seaborn as sns df = pd.DataFrame({'C1': {'a': 1,'b': 15,'c': 9,'d': 7,'e': 2,'f': 2,'g': 6,'h...
Hadwin asked 27/1, 2016 at 16:5

1

I am creating a figure (with the seaborn.objects interface) that requires a legend with both colors and markers. I am trying to move the legend that is generated, but I am having trouble moving the...
Outgo asked 5/4, 2023 at 5:18

2

Solved

Seaborn distplot is now deprecated and will be removed in a future version. It is suggested to use histplot (or displot as a figure-level plot) as an alternative. But the presets differ between dis...
Label asked 21/5, 2021 at 14:13

4

Solved

I would like to hide the Seaborn pairplot legend. The official docs don't mention a keyword legend. Everything I tried using plt.legend didn't work. Please suggest the best way forward. Thanks! im...
Termite asked 20/2, 2019 at 7:47

4

import matplotlib.pyplot as plt import seaborn as sns sns.set_style('whitegrid') %matplotlib inline sns.pairplot(df.dropna()) plt.show() I would like to know how to show the title for th...
Driblet asked 23/4, 2016 at 16:29

2

Solved

I would like to plot labels on a line of a lineplot in matplotlib. Minimal example #!/usr/bin/env python import numpy as np import seaborn as sns sns.set_style("whitegrid") sns.set_palette(sns.co...
Acosta asked 23/4, 2017 at 16:23

3

Solved

I would like to know how I could get multiple markers in the same strip plot. tips = sns.load_dataset("tips") coldict={'Sun':'red','Thur':'blue','Sat':'yellow','Fri':'green'} markdict={'Sun':'x',...
Jaehne asked 29/7, 2016 at 5:8

6

Solved

I am generating bar plots using matplotlib and it looks like there is a bug with the stacked bar plot. The sum for each vertical stack should be 100. However, for X-AXIS ticks 65, 70, 75 and 80 we ...
Papyrus asked 1/6, 2017 at 13:55

2

Solved

I am trying to generate some figures using the joint plot command of Seaborn. I have a list of tuples called "data", with the coordinates (x,y) that needed to be plotted. The x-coordinates are in r...
Khrushchev asked 1/3, 2019 at 19:47

4

Solved

Can Seaborn's lmplot plot on log-log scale? This is lmplot with linear axes: import numpy as np import pandas as pd import seaborn as sns x = 10**arange(1, 10) y = 10** arange(1,10)*2 df1 = pd.Data...
Evesham asked 28/5, 2014 at 13:34

3

Could someone show me how to leave extra space on top of a FacetGrid? I try to put a super title to the top of a FacetGrid plot but end up with the super-title overlapping with the subplot titles d...
Growler asked 20/2, 2015 at 21:4

8

Solved

I'm trying to create bar chart using seaborn.factorplot. My code looks like this: import seaborn as sns import matplotlib.pyplot as plt df = pd.read_csv('data.csv') fg = sns.factorplot(x='vess...
Vendetta asked 19/1, 2016 at 22:20

2

Solved

In the screenshot below, all my x-labels are overlapping each other. g = sns.factorplot(x='Age', y='PassengerId', hue='Survived', col='Sex', kind='strip', data=train); I know that I can remove a...
Gettogether asked 6/8, 2016 at 21:56

© 2022 - 2024 — McMap. All rights reserved.