mwaskom / seaborn

Statistical data visualization in Python
https://seaborn.pydata.org
BSD 3-Clause "New" or "Revised" License
12.59k stars 1.93k forks source link

Adding precomputed errorbars to pointplot #3740

Closed e-pet closed 4 months ago

e-pet commented 4 months ago

Hi,

I have a pandas dataframe with precomputed statistics of the form pd.DataFrame({'group': ['A', 'B', C'], 'med': [1.0, 2.0, 3.0], 'lower': [0.5, 1.5, 1.5], 'upper': [5.0, 4.0, 3.5]}). I would like to create a pointplot with errorbars from this. I know that pointplot currently does not natively support this. (I for one would appreciate it if it did.) Previously, I was using this workaround, but it seems to have broken recently for some reason. Is there any way I can currently achieve this?

mwaskom commented 4 months ago

Hi, seaborn's plotting functions don't support pre-supplied error bars, sorry; I recommend you use matplotlib for that. The linked Stackoverflow question is 7 years old so any number of things could have changed in the meantime!