## Problem : Relationship between the length of a film that lasts between 60 and 200 minutes and its average rating

I want to display, with a curve, the relationship between the length of a film that lasts between 60 and 200 minutes and its average rating on IMDb : movies[‘duree’] = movies[(movies.duree<200) | (...

## My Seaborn boxplot numbers are not on the correct charts

For some reason my median box plot numbers are not on top of the correct boxplot. Here is my code: # bar plot for all filenames based on their mean pixel value sns.set(style = “ticks”, …

## Matplotlib plot function output differs from seaborn’s lineplot

I want to plot a PDF function given data which follows a normal distribution. Mainly I followed this link. Now, if I am working on the data created like on that website (x=np.linspace()) and I plot it …

## Seaborn regression lineplot for a vector stored as list in a dataframe column

I have a dataframe where one of the columns is a 16 element vector (stored as a list). In the past, I have found seaborn’s lineplot highly useful for regression analysis on a scalar column. The vector …

## scatterplot matrix with marginal probability distributions in seaborn

It is straightfoward to do scatter plot matrices with seaborn pairplot. Jointplot also allows combining scatter plots with marginal probability distributions for a single plot. Although the option …

## Is it possible to switch the position of the labels and handels(artists) inside a legend of a matplotlib / pyplot / seaborn plot?

The following code creates a plot with a legend (example taken from https://seaborn.pydata.org/generated/seaborn.scatterplot.html) import seaborn as sns tips = sns.load_dataset(“tips”) sns….

## How to change the hue order in Seaborn plots?

I am new to Seaborn and this is probably a very trivial question, however I’m struggling with the solution. I have a Pandas dataset named titanic I am plotting a bar chart as described in the Seaborn …

## How to select different hue for Seaborn RegPlot

I am using a seaborn regplot with the following code : sns.relplot(x=”NumCustomers”, y=”TotalSales”, hue = ‘StoreLabel’, data=stores_month, height = 5, aspect = 2, s = 100); To …

## Show only first column in a correlation matrix in Python

I have created a correlation matrix of a pandas dataframe using seaborn with the following commands: corrMatrix = df.corr() #sns.heatmap(corrMatrix, annot=True) #plt.show() ax = sns.heatmap( …

## Seaborn: Is there a better way to wrap the text in my bar plot?

I am writing a function for bar plots and have encountered another small problem. I have some ytick labels that are too long, causing my y axis label not able to be seen. I’m only able to see the y …