All Questions
799
questions
0
votes
0
answers
27
views
Easiest way to overlay an existing histplot with a theoretical lognormal PDF in Python
I have data in a series df that I'd like to visually assess (via simple plotting and hist/displot in Seaborn).
I have the below so far but wonder what is the easiest way to add a lognormal pdf for ...
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, ...
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(...
0
votes
1
answer
43
views
How do i add a subplot to an existing FacetGrid?
i have 10 times measured data i want to plot in a specific way.
The easy part was this:
facetgrid = sns.lmplot(data=file_to_plot, col="count", col_wrap=3, x='measured_data', y='y_data')
plt....
1
vote
1
answer
47
views
How can I use values that are not in my data as xticks?
I'm using seaborn to plot values of time spent on an activity in function of the trainig session. The problem that I have is that since I have two distinct groups I've set the x values to for example ...
-1
votes
1
answer
51
views
Plotting Heatmap [duplicate]
I'm facing an issue with rendering a heatmap plot using Seaborn where the graph appears incomplete.Could anyone provide insights into what might be causing this incomplete rendering or suggest ...
-1
votes
1
answer
36
views
addling the difference value of stripplot groups in seaborn
I have used this example of stripplot of seaborn
[ax = sns.stripplot(x="day", y="total_bill", hue="smoker",
data=tips, palette="Set2", dodge=...
0
votes
1
answer
30
views
ticks in seaborn dark plot
I have made a plot with sns.axes_style("dark"). I want to put ticks on this plot, in the same way that the default style has ticks. Moreover, the scale of both axes is logarithmic and I ...
0
votes
1
answer
57
views
Why 0.00% shows in each barplot's first bar?
When I use the below code and try to run it. It shows everything perfectly except 0.00% shown in each bar plot.
dt = pd.DataFrame({'witness':['No', 'No', 'No', 'No', 'No', 'No', 'No', 'Yes', 'No', 'No'...
-2
votes
2
answers
54
views
How to show percentage in each plot? [closed]
When trying to plot the following code I got 4 graphs but the percentage shows in only in the last graph.
fig, axes =plt.subplots(12,2,figsize=(12,50))
plt.subplots_adjust(wspace=0.9, hspace=0.9)
i=0
...
0
votes
0
answers
72
views
Seaborn boxplot color outliers by hue variable using seaborn =< 0.12.2
I would like to color my boxplot-outliers in my Seaborn Boxplot when using a hue variables. Something along the line of this, from seaborn boxplot examples, but I am stuck on seaborn ver. 0.12.2
As I'...
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 ...
0
votes
1
answer
37
views
Is there a way to make a bar plot from only the non-diagonal elements of a confusion matrix?
I'm running a classification task for 3 depth cateogries of earthquakes (shallow, inter, deep) and a 4th category for noise. I'm trying to visualise the varying size of mislabelling in classification ...
1
vote
0
answers
154
views
Matplotlib and seaborn color palette don't match
I am trying to plot a dataframe from 2 perspectives and I'm using matplotlib for one and seaborn for the other just because it's easier this way. My problem is that I can't make the colormap match for ...
3
votes
1
answer
121
views
Distribution Plot with Gradient Fill in Python
I'm trying to create a density plot with a gradient fill in python like this:
I've attempted to do so using this code:
plt.figure(figsize=(6, 1))
sns.kdeplot(data=df, x='Overall Rating', fill=True, ...