Skip to main content

All Questions

Tagged with
0 votes
1 answer
42 views

Plotting multivariable plot in seaborn using Pandas DataFrame

Reproducing the data frame as showed : dx = {'SEGM':[9, 8, 7, 6, 5, 4, 3, 2, 1, 0], 'YES':[4812, 2697, 2677, 1811, 1570, 1010, 418, 210, 115, 166], 'NO':[590, 1368, 2611, 2968, 3942, 3596, 2141, 1668, ...
Nabi Shaikh's user avatar
0 votes
0 answers
27 views

Error with the label plotting with seaborn.objects

I am having problems when I want to make a graph about public transport in Argentina, the label is displayed on the graph, what can I do to fix it? fig, ax = plt.subplots() ax.xaxis.set_tick_params(...
Fausto Martinez's user avatar
1 vote
1 answer
21 views

Sample gradients in grouped scatter plots in seaborn?

Background In biology (and perhaps other fields) there are times that you'd like to visualize the difference between "control" and "treated" conditions. Often one would collect ...
arash's user avatar
  • 285
0 votes
0 answers
20 views

Why is countplot showing single value [duplicate]

I am plotting a graph but it's showing a single value in the plot. I am currently working on a data set that has Amazone Reviews and rating. I've checked there are revies ranging from 1-5. But the ...
Crimson_Codes's user avatar
2 votes
3 answers
112 views

Manually set values shown in legend for continuous variable of seaborn/matplotlib scatterplot

Is there a way to manually set the values shown in the legend of a seaborn (or matplotlib) scatterplot when the legend contains a continuous variable (hue)? For example, in the plot below I might like ...
dfried's user avatar
  • 503
0 votes
1 answer
77 views

How to create a boxplot from scratch using Q1, Q2, Q3, min/max information [duplicate]

I have a distribution but it is differentially private - which means I can't access individual points themselves or pass the distribution itself to plt.boxplot or sns.boxplot. The only thing I have is ...
Bex T.'s user avatar
  • 1,556
0 votes
0 answers
24 views

How to show all annot numbers in the heatmap on seaborn? [duplicate]

Here is the photo attached I tried to update seaborn with conda update seaborn on anaconda command prompt, it was up to update. I also tried to update scipy/sci-kit learn, nothing is changing. It is ...
Erick Arambulo's user avatar
0 votes
0 answers
82 views

Add weights to density function

I want to create a chart where predicted values are on the X axis and actual values are on the Y axis, with a scatter plot of points that also has a density plot weighted by volume. The observations ...
Data of All Kinds's user avatar
1 vote
2 answers
70 views

Discrete Heatmap, change the cell opacity depending on variable (seaborn?)

I'd like to make an heatmap featuring both the continuous variable and the categorical data the sample came with. The goal is to have the hue coming from the category and the opacity (or transparency, ...
BathtubBear's user avatar
0 votes
1 answer
84 views

Relatively easy way to overlay a seaborn historigram with normal distribution plot [duplicate]

Have a dataframe for which I've created a histogram in Seaborn: import seaborn as sns sns.histplot(df, bins=100) I'm also able to create a pdf from its distribution: import scipy.stats as stats ...
Chris's user avatar
  • 1,633
0 votes
1 answer
78 views

how to be relocated asterisk in heatmap with asterisk

How can I change the position of the asterisk in the heatmap? I want the asterisk to be near the top right corner of the square where the number is located, rather than above the number. Positioning ...
Nemo's user avatar
  • 13
0 votes
0 answers
55 views

Seaborn lmplot change errorbar thickness and add caps

I have the following dataframe and using seaborn LM plot to visualise some regression: {'person': {0: 'mark', 1: 'mark', 2: 'mark', 3: 'mark', 4: 'mark', 5: 'mark', 6: 'mark', 7: 'mark', ...
Steve..Johnson's user avatar
0 votes
0 answers
15 views

KeyError when using Seaborn boxplot with DataFrame [duplicate]

I'm encountering a KeyError when attempting to create a Seaborn boxplot using a DataFrame in Python. Specifically, when I run the following code: sns.boxplot(df['built_up_area'].dropna(), color='...
primesh patel's user avatar
0 votes
0 answers
25 views

Issue in Coorelation Matrix Heat Map [duplicate]

I am facing this issue in my heatmap it only shows values in the first row of the heat map.. I write the following code: import seaborn as sns import matplotlib.pyplot as plt import ...
Muhammad Ahmed Rafique's user avatar
2 votes
1 answer
49 views

How do I get Seaborn Barplot bars' colors darker as they become greater/smaller?

I am plotting a list of daily, weekly, monthly IPO stocks performance. I want the bars' colors to grow darker as they get greater/smaller. palletes that I use: color_daily = ['red' if x < 0 else '...
Winston Mulyawan Setiabudi's user avatar

15 30 50 per page
1
2 3 4 5
46