Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
ahuang11 committed Sep 9, 2023
1 parent 0e76dce commit 4fd67e5
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions hvplot/converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -468,10 +468,7 @@ def __init__(

# By type
self.subplots = subplots
if subplots:
self._by_type = NdLayout
else:
self._by_type = NdOverlay
self._by_type = NdLayout if subplots else NdOverlay

self._backend = Store.current_backend
if hvplot_extension.compatibility is None:
Expand Down Expand Up @@ -1338,7 +1335,6 @@ def method_wrapper(ds, x, y):
style['cmap'] = self._style_opts['cmap']
if self._dim_ranges.get('c', (None, None)) != (None, None):
style['clim'] = self._dim_ranges['c']
print(style)

processed = operation(obj, **opts)

Expand Down Expand Up @@ -1514,12 +1510,10 @@ def single_chart(self, element, x, y, data=None):
cur_opts = {
element.name: cur_el_opts,
'NdOverlay': filter_opts('NdOverlay', dict(self._overlay_opts, batched=False), backend='bokeh'),
'ImageStack': filter_opts('ImageStack', dict(self._overlay_opts, batched=False), backend='bokeh'),
}
compat_opts = {
element.name: compat_el_opts,
'NdOverlay': filter_opts('NdOverlay', dict(self._overlay_opts), backend=self._backend_compat),
'ImageStack': filter_opts('ImageStack', dict(self._overlay_opts), backend=self._backend_compat),
}

ys = [y]
Expand All @@ -1543,7 +1537,6 @@ def single_chart(self, element, x, y, data=None):
chart = Dataset(data, self.by+kdims, vdims).to(
element, kdims, vdims, self.by).relabel(**self._relabel)
chart = chart.layout() if self.subplots else chart.overlay(sort=False)
print(type(chart), "PROBLEM ABOVE ^^^")
else:
chart = element(data, kdims, vdims).relabel(**self._relabel)
return (chart.redim(**self._redim)
Expand Down

0 comments on commit 4fd67e5

Please sign in to comment.