From e018ff238d5b7860d8e4914c233d4ebe1e0d7068 Mon Sep 17 00:00:00 2001 From: jlstevens Date: Wed, 14 Jun 2023 13:03:34 +0200 Subject: [PATCH] More flake fixes --- holoviews/plotting/bokeh/element.py | 10 +++++----- holoviews/plotting/plot.py | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/holoviews/plotting/bokeh/element.py b/holoviews/plotting/bokeh/element.py index 8d44bcb53f..aba6bfe402 100644 --- a/holoviews/plotting/bokeh/element.py +++ b/holoviews/plotting/bokeh/element.py @@ -562,11 +562,11 @@ def _init_plot(self, key, element, plots, ranges=None): fig = figure(title=title, **properties) multi_ax = 'x' if self.invert_axes else 'y' - for dim, range_obj in properties.get(f'extra_{multi_ax}_ranges', {}).items(): - axis_type, axis_label, _ = axis_specs[multi_ax][dim] - ax_cls, ax_kwargs = _get_axis_class(axis_type, range_obj, dim=1) - ax_kwargs[f'{multi_ax}_range_name'] = dim - fig.add_layout(ax_cls(axis_label=axis_label, **ax_kwargs), yaxes[dim]) + for axis_dim, range_obj in properties.get(f'extra_{multi_ax}_ranges', {}).items(): + axis_type, axis_label, _ = axis_specs[multi_ax][axis_dim] + ax_cls, ax_kwargs = _get_axis_class(axis_type, range_obj, axis_dim=1) + ax_kwargs[f'{multi_ax}_range_name'] = axis_dim + fig.add_layout(ax_cls(axis_label=axis_label, **ax_kwargs), yaxes[axis_dim]) return fig def _plot_properties(self, key, element): diff --git a/holoviews/plotting/plot.py b/holoviews/plotting/plot.py index 650f174518..b82e3ff61d 100644 --- a/holoviews/plotting/plot.py +++ b/holoviews/plotting/plot.py @@ -1255,7 +1255,7 @@ def _has_axis_dimension(self, element, dimension): dimension in ds if isinstance(ds, list) else dimension == ds for ds in dims ) - + def _get_frame(self, key): if isinstance(self.hmap, DynamicMap) and self.overlaid and self.current_frame: self.current_key = key