Boxplot stats w/ equal quartiles#5343
Conversation
1f6f743 to
f72e89f
Compare
lib/matplotlib/cbook.py
Outdated
There was a problem hiding this comment.
sp. statistics
"to be use" -> "to use"
|
Cool. Much improved. 👍 |
|
@mdboom thanks for the comments. I think I got them all as they came in 😄 ...aaaaaand here's the part where I pitch the idea that we add in an option to pass your own bootstrapper. Something like: def boxplots_stats(..., bootstrap_fxn=None):
if bootstrap_fxn is None:
bootstrap_fxn = _bootstrap_median
# ...
def _compute_conf_interval(data, med, iqr, bootstrap):
if bootstrap is not None:
# Do a bootstrap estimate of notch locations.
# get conf. intervals around median
CI = bootstrap_fxn(data, N=bootstrap)
notch_min = CI[0]
notch_max = CI[1]
else:
N = len(data)
notch_min = med - 1.57 * iqr / np.sqrt(N)
notch_max = med + 1.57 * iqr / np.sqrt(N)
# yada yada |
9c9d7ad to
d9677e9
Compare
|
I am starting to think that box plots are a complicated enough topic that they should be spun off into a sub-project (which is allowed to do things like require pandas and scipy). Probably take violin plots with them too. |
|
Isn't that essentially seaborn? |
ffe9760 to
fc288e4
Compare
|
We would also still want basic boxplot/violinplot functionality for those On Wed, Oct 28, 2015 at 10:28 PM, Elliott Sales de Andrade <
|
9bde579 to
ec2eeab
Compare
ec2eeab to
0d8db73
Compare
|
rebased with current master (branch had gotten stale) |
lib/matplotlib/axes/_axes.py
Outdated
There was a problem hiding this comment.
the meanline docs should move back up to be in the right order to match the signature.
There was a problem hiding this comment.
eh, maybe not, I can go either way on this on further consideration.
761ee40 to
ae398d2
Compare
|
tagged this as a bug fix, but I am not sure if that is the correct tag for this. |
|
@tacaswell should I rebase on 1.5.X or 2? |
|
on to master then we will back-port the merge to where ever we decide this will go. |
ae398d2 to
7b044c0
Compare
|
It looks like you committed the conflicts in the SVG files: |
|
Bump -- just gave this another rebase to keep it current with master |
efa39e7 to
14192ca
Compare
|
Build failures are unrelated. Something's wacky with colorbars, e.g., |
|
Yes, this came about due to a merge of a different PR last night, I think. On Thu, Feb 18, 2016 at 12:16 PM, Paul Hobson notifications@github.com
|
|
Sorry, I broke all the branches. Merged a PR that passed before we put the zero-tolerance in. There were some regions of those images where the 8bit blue value changed by 1 |
|
The failure on appveyor is which is known to be flaky |
|
Bump -- give me a shout if y'all want any changes made to this. |
lib/matplotlib/cbook.py
Outdated
| keys of the dictionary. Users can skip this function and pass a user- | ||
| defined set of dictionaries to the new `axes.bxp` method instead of | ||
| relying on MPL to do the calcs. | ||
| def boxplot_stats(X, whis=1.5, autorange=False, bootstrap=None, |
There was a problem hiding this comment.
Is this considered a public function? If so the new arg needs to go last.
|
Read through this, other than my one comment 👍. The docstrings are much better. Can this get a note in
|
|
@tacaswell your understanding matches mine. and to make sure I'm clear -- I don't modify |
|
Yes. The individual files helps prevent rebase-due-to-doc-conflicts On Sun, Mar 13, 2016 at 6:41 PM Paul Hobson notifications@github.com
|
3743f6b to
6fe8a72
Compare
Boxplot stats w/ equal quartiles
Boxplot stats w/ equal quartiles
|
Backport wasn't clean (conflict in removed svg file) so doing it via #6153 |
Backport #5343 from phobson/bxp-equal-quartiles
|
thanks for the merge and help, everyone! |
Boxplot stats w/ equal quartiles
See #5331
Addresses the concern raised in the issue above and cleans up the docstring.
Previous behavior available through the
autorangekwarg.