-
-
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
Boxplots render as lines for datetime x-axis and multiple y-axes #3516
Comments
Thanks for the report. Very related to #3508 |
FWIW what's happening is we don't know what width to give the boxes, because there are no other boxes on the same subplot to to give a distance to the next box, so they get a width of 1 - which for dates means 1 millisecond, hence on a scale of days it looks like zero width. You can fix this with an explicit width attribute (added recently in #3234, as @etpinard mentioned in #3508) @etpinard are you thinking we can have boxes on overlaying subplots consider each other in width calculations? That seems like it would work for the first example, with boxes on each axis, and offhand I don't see any cases you'd want the existing behavior. Would you want to do this for stacked subplots as well? ie consider all boxes on the same position axis? That would be useful if @lemurey's The second example (box + scatter) I don't really see any solution for except explicit width; there's really nothing to guide us in scaling the box. |
@alexcjohnson Thanks for the note on width, I hadn't seen that, that will easily solve my immediate issue. |
Hi - this issue has been sitting for a while, so as part of our effort to tidy up our public repositories I'm going to close it. If it's still a concern, we'd be grateful if you could open a new issue (with a short reproducible example if appropriate) so that we can add it to our stack. Cheers - @gvwilson |
When using a datetime x axis and two y-axes single boxplots appear as vertical lines:
![two axes](https://user-images.githubusercontent.com/11200672/52305103-2ca6ef80-2949-11e9-8265-f466b9ef0d27.png)
![single axis](https://user-images.githubusercontent.com/11200672/52304871-907ce880-2948-11e9-8b0e-27483d26dc2f.png)
![multiple box plots](https://user-images.githubusercontent.com/11200672/52305278-9cb57580-2949-11e9-9019-7fba6a814445.png)
This also happens with a single y-axis and multiple plot types:
If you add a second boxplot on the same y-axis both render properly:
Code example for case 1:
https://codepen.io/anon/pen/zeEKEo
The text was updated successfully, but these errors were encountered: