Skip to content

Commit

Permalink
Fix regression handling non-finite range values (#5838)
Browse files Browse the repository at this point in the history
Co-authored-by: Simon Høxbro Hansen <[email protected]>
  • Loading branch information
philippjfr and hoxbro authored Aug 16, 2023
1 parent fb16727 commit 75d510f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions holoviews/plotting/bokeh/element.py
Original file line number Diff line number Diff line change
Expand Up @@ -482,8 +482,11 @@ def _axis_props(self, plots, subplots, element, ranges, pos, *, dim=None,
elif categorical:
axis_type = 'auto'
dim_range = FactorRange()
elif None in [v0, v1] or any(True if isinstance(el, (str, bytes)+util.cftime_types) else np.isnan(el) for el in [v0, v1]):
dim_range = range_type()
elif None in [v0, v1] or any(
True if isinstance(el, (str, bytes)+util.cftime_types)
else not util.isfinite(el) for el in [v0, v1]
):
dim_range = range_type()
else:
dim_range = range_type(start=v0, end=v1, name=dim.name if dim else None)

Expand Down

0 comments on commit 75d510f

Please sign in to comment.