Skip to content

Commit a8c7a58

Browse files
authored
pass down bin_range (#1663)
1 parent 8a029c5 commit a8c7a58

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

hvplot/converter.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2769,7 +2769,7 @@ def hist(self, x=None, y=None, data=None):
27692769
hist_opts['bins'] = bins
27702770

27712771
if not isinstance(y, (list, tuple)):
2772-
if 'bin_range' not in self.kwds:
2772+
if hist_opts['bin_range'] is None:
27732773
ys = data[y]
27742774
ymin, ymax = (ys.min(), ys.max())
27752775
if is_dask(ys):
@@ -2792,7 +2792,7 @@ def hist(self, x=None, y=None, data=None):
27922792
.opts(compat_opts, backend=self._backend_compat)
27932793
)
27942794

2795-
if 'bin_range' not in self.kwds and not self._norm_opts.get('axiswise'):
2795+
if hist_opts['bin_range'] is None and not self._norm_opts.get('axiswise'):
27962796
ranges = []
27972797
for col in y:
27982798
ys = data[col]

hvplot/plotting/core.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1096,6 +1096,7 @@ def hist(
10961096
y=y,
10971097
by=by,
10981098
bins=bins,
1099+
bin_range=bin_range,
10991100
normed=normed,
11001101
cumulative=cumulative,
11011102
**kwds,

0 commit comments

Comments
 (0)