Questions tagged [pointplot]

For questions about seaborn.pointplot, or seaborn.catplot with kind='point'.

  • seaborn.pointplot: A point plot represents an estimate of central tendency for a numeric variable by the position of the dot and provides some indication of the uncertainty around that estimate using error bars.
10 questions
41
votes
3 answers

Turn off errorbars in seaborn plots

import seaborn as sns # sample data df = sns.load_dataset('titanic') ax = sns.barplot(data=df, x='class', y='age', hue='survived') Is there a way to turn off the black error bars?
equanimity
  • 2,371
  • 3
  • 29
  • 53
20
votes
1 answer

How to change linewidth and markersize separately in factorplot

I understand that scale changes both parameters at the same time, but I want to achieve the effect of having a thin line connected between big markers. I also tried resizing through rc{'lines.linewidth' = 1, 'lines.markersize' = 5}, but it ends up…
kc2uno
  • 1,141
  • 2
  • 12
  • 16
7
votes
2 answers

reduce line width of seaborn pointplot

import seaborn as sns sns.set(style="ticks") exercise = sns.load_dataset("exercise") g = sns.factorplot(x="time", y="pulse", hue="kind", data=exercise) In the plot above, if I specify scale as 0.5, it reduces line width but not width of confidence…
user308827
  • 21,227
  • 87
  • 254
  • 417
7
votes
3 answers

How to get data labels on a Seaborn pointplot?

I have two arrays like so: Soldier_years = [1850, 1851, 1852, 1853, 1854, 1855, 1856, 1857, 1858, 1859, 1860, 1861, 1862, 1863, 1864, 1865, 1866, 1867, 1868, 1869, 1870] num_records_yob = [7, 5, 8, 9, 15, 17, 23, 19, 52, 55, 73, 73, 107, 137, 65,…
lostsoul29
  • 746
  • 2
  • 11
  • 19
2
votes
0 answers

How to connect the points within each group of a pointplot

I'm working on a project with Python and saw a nice plot on Kaggle, but the language used is R, which I don't know. Test Data: kaggle: Monthly Electricity Production in GWh [2010-2022] Plot on Kaggle: I tried to recreate the plot using Python and I…
2
votes
1 answer

Can I change one marker size on a point plot?

Using Seaborn's pointplot I have created the following image: I was wondering if I could change the size of each marker to be a unique value. The image was made by calling sns.pointplot(x = 'Partying', y = 'Province', …
Demetri Pananos
  • 6,770
  • 9
  • 42
  • 73
1
vote
2 answers

x axis value ranges not sequential in seaborn barplot & pointplot as subplots

My data frames are: df['graph_df_uni_valid'] group MO_SNCE_REC_APP Label predictions 0 (-0.001, 25.0] 24324 0.042551 0.042118 1 (25.0, 45.0] 24261 0.035077 0.033748 2 (45.0, 64.0] …
nads
  • 71
  • 1
  • 7
1
vote
1 answer

How to add a vertical line to a seaborn pointplot

I want to add a vertical line in sns.pointplot(), which has datetime xticks, I used ax.axvline, but the position of the line was wrong. my dataframe like…
0
votes
0 answers

How do I scale the x axis for visibility?

I'm trying to make a point plot of a data frame but all the values on the x axis are shown and is impossible to read. How can I scale the x axis in order for it to just show ticks instead of all the values? here's my…
0
votes
0 answers

Set transparency in sns.pointplot

I am trying to figure out to add transparency or alpha to sns.pointplot. I have a plot that looks like this: I am trying to add the transparency or alpha to it, but no luck. I know I can set alpha in sns.kdeplot but not sure how to do it on…
sP1999
  • 3
  • 3