Skip to content

Commit

Permalink
Add a second test and update release notes
Browse files Browse the repository at this point in the history
  • Loading branch information
mwaskom committed May 18, 2022
1 parent b25b088 commit 796e89a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions doc/releases/v0.12.0.txt
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ Other updates

- |Fix| Fixed a regression in 0.11.2 that caused some functions to stall indefinitely or raise when the input data had a duplicate index (:pr:`2776`).

- |Fix| Fixed two edgecases in :func:`histplot` when only `binwidth` was provided (:pr:`2813').

- |Fix| In :func:`lineplot`, allowed the `dashes` keyword to set the style of a line without mapping a `style` variable (:pr:`2449`).

- |Dependencies| Made `scipy` an optional dependency and added `pip install seaborn[all]` as a method for ensuring the availability of compatible `scipy` and `statsmodels` libraries at install time. This has a few minor implications for existing code, which are explained in the Github pull request (:pr:`2398`).
Expand Down
6 changes: 6 additions & 0 deletions seaborn/tests/test_statistics.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,12 @@ def test_odd_single_observation(self):
assert len(h) == 1
assert (e[1] - e[0]) == pytest.approx(.03)

def test_binwidth_roundoff(self):
# GH2785
x = np.array([2.4, 2.5, 2.6])
h, e = Histogram(binwidth=0.01)(x)
assert h.sum() == 3

def test_histogram(self, x):

h = Histogram()
Expand Down

0 comments on commit 796e89a

Please sign in to comment.