Skip to content

Commit

Permalink
Updated definition of box plot whiskers to match convention for Bokeh…
Browse files Browse the repository at this point in the history
… plots. (#3755)

* Updated definition of box plot whiskers to match convention.

* Corrected definition of box plot whiskers to match convention.
  • Loading branch information
justinbois authored and philippjfr committed Jun 25, 2019
1 parent fd57be8 commit f9e7740
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions holoviews/plotting/bokeh/stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,8 @@ def _box_stats(self, vals):
q1, q2, q3 = (np.percentile(vals, q=q)
for q in range(25, 100, 25))
iqr = q3 - q1
upper = min(q3 + 1.5 * iqr, vals.max())
lower = max(q1 - 1.5 * iqr, vals.min())
upper = vals[vals <= q3 + 1.5*iqr].max()
lower = vals[vals >= q1 - 1.5*iqr].min()
else:
q1, q2, q3 = 0, 0, 0
upper, lower = 0, 0
Expand Down

0 comments on commit f9e7740

Please sign in to comment.