olgabot / prettyplotlib

Painlessly create beautiful matplotlib plots.
olgabot.github.io/prettyplotlib
MIT License
1.69k stars 148 forks source link

Enhancement: boxplot2 #77

Closed jandom closed 10 years ago

jandom commented 10 years ago

Hi Olga, I recently attended a conference where a number of immunologists showed a variant of a boxplot like this one http://www.nature.com/nm/journal/v12/n12/images/nm1511-F1.jpg So I proceed to hack the matplotlib's default boxplot to resemble this pretty creature. An example rendering is attached below and a working example is a part of the commit. plot Would you like to incorporate that into prettyplotlib or are you happy with the boxplot from matplotlib? I realize that the code is probably somewhat incomplete/hacky so I'll gladly make changes.

olgabot commented 10 years ago

This is great! Reminds me of beeswarm plots from R. Could you add a test like test_boxplot.py?

jandom commented 10 years ago

Hi Olga, I'm done making the changes - added some tests, docs, refactored a little bit. Not a whole lot: the beeswarm is still essentially a copy of mpls boxplot. Let me know if you'd like to see the commits squashed into one?

olgabot commented 10 years ago

Thanks for the update! I'll merge this right away. NO worries about the commits.

jandom commented 10 years ago

Shweet, thanks!