Questions tagged [catplot]

Questions for seaborn.catplot

80 questions
0
votes
1 answer

remove category label in catplot

Can you remove the category label in catplot? (ssc install catplot) I am trying to plot a single category, e.g. sysuse auto, clear catplot foreign rep78 if rep78 == 3, recast(bar) and I want to remove the "3" from the x-axis
invictus
  • 1,821
  • 3
  • 25
  • 30
0
votes
0 answers

Random sample for y variable in catplot seaborn

I'm new to python and trying to create catplot (stripplot and swarmplot) with a jitter in seaborn for x='region' and y='amount' using a random sample of 300 from my y variable. I have tried: data_sample = data.sample(300) y =…
jlbrosnahan
  • 173
  • 1
  • 1
  • 10
-1
votes
1 answer

Why are my plots getting plotted outside my subplots?

I am not able to understand why my plots are being plotted outside my subplots. Can anyone tell me where I am going wrong? Here is my code snippet: figure, (ax1,ax2,ax3) = plt.subplots(1, 3,…
-1
votes
1 answer

catplot issue Axes object

Supposing I have a Pandas DataFrame variable called df which has columns col1, col2, col3, col4. Using sns.catplot() everything works fine: fig = sns.catplot(x='col1', y='col2', kind='bar', data=df, col='col3', hue='col4') However, as soon as I…
DrDominio
  • 113
  • 1
  • 10
-2
votes
2 answers

AttributeError: 'PathCollection' object has no property 'errorbar'

I am trying to add the confidence interval 95% on my graph. This code works just fine: sns.catplot(data=df, x="read_level_1", y="sum_START", kind="box") However, when I try the following line: sns.catplot(data=df, x="read_level_1", y="sum_START",…
1 2 3 4 5
6