Skip to content

Commit

Permalink
Add version check
Browse files Browse the repository at this point in the history
  • Loading branch information
ahuang11 committed Sep 18, 2023
1 parent 12cc2b8 commit c101546
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion hvplot/converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -1330,7 +1330,10 @@ def method_wrapper(ds, x, y):
opts['rescale_discrete_levels'] = self._plot_opts['rescale_discrete_levels']
else:
operation = rasterize
eltype = 'ImageStack' if self.by else 'Image'
if hv.__version__ < '1.18.0':
eltype = 'Image'
else:
eltype = 'ImageStack' if self.by else 'Image'
if 'cmap' in self._style_opts:
style['cmap'] = self._style_opts['cmap']
if self._dim_ranges.get('c', (None, None)) != (None, None):
Expand Down

0 comments on commit c101546

Please sign in to comment.