Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Default boxplot style rebase #6481
Conversation
jenshnielsen
added the
default changes
label
May 26, 2016
jenshnielsen
added this to the
2.0 (style change major release)
milestone
May 26, 2016
jenshnielsen
added the
needs_review
label
May 26, 2016
|
@phobson I hope you are ok with me making a few changes on top of your PR so we can get it merged before we cut the 2.x beta. I have tried to do a few modifications as possible to restore old default behaviours with matplotlib 1.5.x classic style and fix the tests. Let me know if you can spot any issues. |
|
@jenshnielsen absolutely! sorry i was lagging behind |
tacaswell
commented on the diff
May 28, 2016
|
Something is not right here, the output from http://matplotlib.org/examples/pylab_examples/boxplot_demo.html does not seem to respect the color (either on this branch or v1.5.1) but does work on master http://matplotlib.org/devdocs/examples/pylab_examples/boxplot_demo.html |
|
@tacaswell that is weird. I'm not sure what's going on. @jenshnielsen I'm not sure why the medians aren't showing up in this example either: https://github.com/matplotlib/matplotlib/pull/6481/files#diff-b5878226d9a3230ab74d34de5a0f994f |
phobson
added some commits
Oct 29, 2015
|
@tacaswell I fixed the color issue (The flier color was set by the marker argument but not the face and edgecolor which was set to default values) |
|
The effect of the color can also be seen in the changes to boxplot_mod_artists_after_plotting.png
This is no longer the case because edge and facecolor now takes effect |
|
Running out of time to look more at this at the moment. I will try to get back to it later today. This will need some test image updated after the fix above. There seems to be something wrong with test_bxp_custompatchartist |
|
@phobson Sorry for being stupid but can you point me exactly to which example is missing the median? |
|
@jenshnielsen happily. It's right here: https://github.com/matplotlib/matplotlib/pull/6481/files#diff-b5878226d9a3230ab74d34de5a0f994f oddly, the custom patch artist example is fine. |
|
So we are talkign about bxp_patchartist.png? We should probably either change the default median color or change the default patch color to use some thing else than |
|
Oh yeah. That makes sense. This is tricky. My preference is that if we're filling in the box with a patch artist, the the median should be the same color as the border of the patch artist. Sorry if this was unintelligible. I'm on my phone. On Mon, May 30, 2016 at 7:48 AM -0700, "Jens Hedegaard Nielsen" notifications@github.com wrote: So we are talkign about bxp_patchartist.png? In that test we are plotting a median which has the color C0 on top of a patch with a color C0 so naturally it's not really visible. We should probably either change the default median color or change the default patch color to use some thing else than patch.facecolor — |
phobson
and others
added some commits
May 10, 2016
|
Thats not really easy to do unfortunately. To do that I think we would need to add a different rc param for the median color when using patch. I changed the defaults mean and median to C1 and C2 which are different from the patch color. I squashed the image changing commits together |
tacaswell
merged commit 1bf3377
into matplotlib:master
May 30, 2016
tacaswell
removed the
needs_review
label
May 30, 2016
tacaswell
added a commit
that referenced
this pull request
May 31, 2016
|
|
tacaswell |
ff98856
|
|
backported to v2.x as ff98856 |
|
thanks @tacaswell and @jenshnielsen !! |
jenshnielsen commentedMay 26, 2016
Rebase of #5523 on master hopefully fixing the travis issues.