-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
End caps on barplot confidence intervals #606 update #898
Conversation
Thanks for fixing the tests and getting this working in pointplot. Please add some tests to cover this new behavior, though. |
capsize=None, | ||
**kws): | ||
|
||
if conf_lw: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you are testing against None
, do so explicitly.
I have made some comments. I would suggest writing the tests first before addressing them so that you can guard against introducing errors when fixing. |
Thanks for the quick feedback. This is my first time really writing python, so I appreciate the code review. I will see if I can implement the tests, check them in and then work on getting the changes you suggested in as well. |
Python script with some values adjusting the errwidth and the capsize `import seaborn as sns ##LINEPLOTS g=None g=None g=None g=None g=None ##BarPlots g=None g=None g=None g=None |
I know you are quite busy, but does there need to be any more work done on this for it to be integrated? |
On a very quick review the code looks clean and your example plots look very thorough, but I'm waiting to get the time to actually play with it myself for a bit before hitting merge. I'll ping you if it needs any more changes. |
Thanks! |
No problem! Thanks for letting me contribute :) |
In seaborn version 0.9.0, new plotting functions including relplot() are released. These still don't have attributes err_width and cap_size for end caps in type line plots with confidence intervals. |
I think this fixes the end cap addition to barplot and scatterplot confidence intervals. Let me know what you think. It should pass all the automated tests. Let me know if there is anything wrong. I've attached some images, along with the python script I used to generate them. This should show you what the different parameters look like for different capsize and conf_lw. Major thanks to jat255 who did the initial work on this. This is my very first contribution to an open source project that is not my own. Let me know if there is anything else that needs to be done as far as style and/or code cleanup.
`