catplot Questions
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
2
Solved
I need to add hatches to a categorical box plot.
What I have is this:
What I need is something like this (with the median lines):
And what I have tried is this code:
exercise = sns.load_dataset(&...
Shetrit asked 17/6, 2022 at 9:2
1
Each bar has large width
How can I reduce the width of bars, as shown by the drawn red rectangles?
I have the following code in Google Colab.
model_names = ['RFC', 'KNN', 'D-tree', 'SVM RBF']
accu...
1
I tried using sns.set_style("white"), but the spines only cover the bottom and left side. How can I set the spines all around the figure?
I also tried plt.subplots_adjust(right=0.1, top=0...
Elias asked 25/5, 2023 at 15:48
3
Solved
How can I add grid lines (vertically and horizontally) to a seaborn catplot? I found a possibility to do that on a boxplot, but I have multiple facets and therefore need a catplot instead. And in c...
5
Solved
A have produced a boxplot with Facetgrid in seaborn the following way
# Import the dataset
tips = sns.load_dataset("tips")
# Plot using FacetGrid, separated by smoke
plt.style.use('ggplo...
Montherlant asked 17/8, 2018 at 8:32
2
Solved
I have multiple data frames consist of three main columns: 1)the categories (c1, c2, c3), one includes the data values, and one includes different time-periods (AA, BB, CC, DD).
what I am trying to...
Arthralgia asked 29/1, 2021 at 5:17
1
Solved
I have two queries:
I want to remove the empty bar from the bar graph (present in the first column).
I have to use this graph in a PowerPoint presentation. How can I increase the height of the bar...
Benighted asked 15/1, 2021 at 7:34
2
Solved
I'm not able to rotate my xlabels in Seaborn/Matplotlib. I have tried many different solutions but not able to fix it. I have seen many related questions here on stackoverflow, but they have not wo...
Williamswilliamsburg asked 15/9, 2020 at 20:24
1
Solved
I've been working with seaborn.catplot in order to have a bar plot (data sample bellow) adding up the values in a counts column for a set of reasons, separated by a group of companies:
sns.catplot...
Emanuel asked 7/10, 2019 at 9:54
1
© 2022 - 2025 — McMap. All rights reserved.