Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
BUG: boxplot does not set limits of axis #5517
Comments
aseyboldt
commented
Nov 14, 2013
|
Attaching the image did not work as I expected. The image is here: |
|
Note that it also works when you comment both EDIT: It's not really a pandas bug (but could maybe solved in pandas), but it also happens if you do it yourself manually in matplotlib. Due to the shared axes, there goes something wrong with the limits when there is an empty subplot. |
|
It seems this should be fixed in matplotlib master: matplotlib/matplotlib#2356 and matplotlib/matplotlib#2357 |
aseyboldt
commented
Nov 15, 2013
|
I can confirm that this is fixed in matplotlib master. |
|
is this still a bug? or just in matplotlib? anything to do? |
|
It's a bug in matplotlib, which it is fixed in matplotlib master, and not a real pandas bug. But it would be possible to workaround it in pandas (as it produces a wrong boxplot by only using pandas code). But I do not know how easy and/or necessary this would be. |
|
ok....prob by the time 0.14 comes out, will just close this |
aseyboldt commentedNov 14, 2013
DataFrame.boxplotfails to properly set the limits of the y-axis is this example:I would expect the y-axis to go from 0 to 1, not -0.06 to 0.06.
If I uncomment the
Mit works.I use pandas 0.12.0 and matplotlib 1.3.1