-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
boxplot in version 1.4.0 does not respect property settings for fliers (flierprops) #3459
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
Comments
Thanks for the detailed bug report! cc @phobson |
I received a syntax error for trying to use capprops and whiskerprops keywords. There is a difference in the documentation as well (the title disagrees with the call signature). |
@jimmyc42 can you give us an example of the code that fails? |
Here is the error message I got for whiskerprops which is similar to what capprops returns... TypeError Traceback (most recent call last) TypeError: boxplot() got an unexpected keyword argument 'whiskerprops' |
This is the result of some poor default values. As a work-around pass |
@tacaswell Unfortunately, your workaround does not seem to work for me. Here's what I'm doing (based on the above):
Two things should happen: The shape of the fliers should be a circle and absolutely everything should be green. I do get a circle but it's blue, while the rest is green. In matplotlib 1.3.1, instead, everything is green. On a sidenote, the object |
@Pipping That looks like an entirely different issue. This issue has to do with Your issue has to do with the data structure returned apparently not containing the flier objects. Can you please make a new issue? Also, I would advise against using Also also, why are you resetting the colors like this instead of controlling them via the arguements to boxplot? |
@tacaswell: In a manner similar to http://stackoverflow.com/a/16598291/179927 I plot two boxplots at once and then color both independently. I believe I cannot do this through the dictionaries which can be passed to Update: Since you object to |
Fair enough. That is probably something we should make easy, but I am not sure going with dict or list of dicts for each input is completely clever. |
So that would be #3544 now. |
Thank you
|
I'll look into this tonight. I think I figured out the issue with the code. -- On Wed, Sep 3, 2014 at 2:45 AM, Thomas A Caswell notifications@github.com
|
@phobson Which this? The fiierprops (which I think should be fixed) or the un-returned flier object? |
I'm a bit behind. I was going to look at everything and figure out what needed to be done and try to do it. If the symbol issues are worked out, then I'll focus on the unreturned fliers. -- On Mon, Sep 29, 2014 at 12:22 PM, Thomas A Caswell
|
closed by #3533 |
Minimum amount of code to reproduce the bug:
This produces

Note the flier is a large blue plus sign, not a green circle as specified by
flierprops
.This happens with Python 2.7.8 and matplotlib 1.4.0 -- haven't tested other situations.
This bug does not seem to be dependent upon the particular choice of
flierprops
but I haven't exhaustively tested this.Notably, this broken example can also be found in the boxplot demo code: http://matplotlib.org/examples/statistics/boxplot_demo.html
The relevant code at that page is shown in the third line at the top and the last two lines at the bottom of this image:
And the demo graph that results from this demo code is also broken in the same way as the first example -- a large blue plus is shown instead of the specified symbol:
Lastly, note that if the the
sym
argument is provided that specifies the symbol desired,boxplot
does seem to respectflierprops
. Code example:Result:

If this is the intended fix or correct way to use this function, this should be made clear in the documentation and in the demo code.
Justification for this issue: There were closed issues related to this, but one seemed to involve some debate about defaults and the other seemed to concern only lower values. The bug reported here is not a problem with defaults nor just with lower fliers. Couldn't find other potential duplicates but apologies if that is the case.
The text was updated successfully, but these errors were encountered: