Category "seaborn"

How to plot the cluster's centroids using seaborn

Basically, I want to plot like this: I already managed to plot the clusters using sns.scatterplot(X[:,0], X[:,1], hue=y, palette=['red', 'blue', 'purple', 'gre

Off-center X-Axis in Seaborn

I'm having an issue getting my boxplot to align with my x axis labels. I've tried adjusting the size of the chart, but the data points still look a little off.

Why has seaborn/matplotlib filled below the line in this lineplot

I don't know why my plot looks like this: I only want to display lines with no fill. Code below. Note this also happens if I run in Spyder or cmd. import ma

Remove one out of two legends from Seaborn Scatterplot

Using the 'tips' dataset as a toy model, I generate the following plot: import seaborn as sns import matplotlib.pyplot as plt tips = sns.load_dataset("tips")

Google Colab not updating package?

I am trying to use seaborn==0.8.1 in an ipynb on Google colab. Here is my code: """General import statements and settings config.""" !pip install seaborn==0.8.

How to customize histogram using seaborn FacetGrid

I am using seaborn's FacetGrid to do multiple histogram plots from a dataframe (plot_df) on the parameter - "xyz". But I want to do the following additional thi

Get data points from Seaborn distplot

I use sns.distplot to plot a univariate distribution of observations. Still, I need not only the chart, but also the data points. How do I get the data poi

How to handle seaborn pairplot errors when the dataset has NaN values?

I have a pandas DataFrame with multiple columns filled with numbers and rows, and the 1st column has the categorical data. Obviously, I have NaN values and zero

Combine seaborn legends with histplot

I've got four separate subplots below. the figure is as intended and legend is fine. But I'm including a separate line to each subplot and want to include this

Obtaining the exact data coordinates of seaborn boxplot boxes

I have a seaborn boxplot (sns.boxplot) on which I would like to add some points. For example, say I have this pandas DataFrame: [In] import pandas as pd

Setting plot background colour in Seaborn

I am using Seaborn to plot some data in Pandas. I am making some very large plots (factorplots). To see them, I am using some visualisation facilities at my u

Setting plot background colour in Seaborn

I am using Seaborn to plot some data in Pandas. I am making some very large plots (factorplots). To see them, I am using some visualisation facilities at my u

How to add custom annotations to a stacked bar

I am trying to annotate a stacked histogram in Seaborn with the hue for each segment in the histogram for readability reasons. I've attached sample data below a

Is there a way to show the probability within hue category in Seaborn histogram

For example, I have a dataframe: data = {'1': [1, 1, 2,2,2,2,2, 3,2.5,2.5,1.5,2,2.5,2, 2, 3,1.5,2], '2': [1,1,1,1,1,1,1,1,1,1,1,1,1,1,0, 0,0,0], }

Problems while plotting time series against user logins?

I have a large pandas dataframe, which is a log of user ids that login in a website: id datetime 130 2018-05-17 19:46:18 133 2018-05-17 20:5

Seaborn Pariplot: how to move legend and set style

I'm trying to get a pairplot of my data using seaborn. I want to set the legend outside of the axes because my other plots might have upto 9 features which make

Correlation heatmap of many datasets

I am working with niftis (Neuroimaging format) looking at 3D volumes of the brain. I want to compare experiments with brain activity. Therefore I have about 2

Adding labels in x y scatter plot with seaborn

I've spent hours on trying to do what I thought was a simple task, which is to add labels onto an XY plot while using seaborn. Here's my code import seaborn a

How to scale Seaborn's y-axis with a bar plot

I'm using factorplot(kind="bar"). How do I scale the y-axis, for example with log-scale? I tried tinkering with the plots' axes, but that always messed up the b

Connecting means in seaborn box plot

I want to connect box plot means. I can do the basic part but cannot connect box plot means and box plots offset from x axis. similar post but not connecting me