From fd72219cb5a9a38b354648e6dd554fed746ae288 Mon Sep 17 00:00:00 2001 From: Stas Date: Fri, 8 Apr 2022 13:01:46 +0300 Subject: [PATCH] use Renderer's center property for HoloViews pane (#5197) * use Renderer's center property for HoloViews pane Hi, I noticed that there are 2 places where HoloViewsPane is instantiated: in one case its center property is set using Renderer's center property, in another it is set to always = True, not sure if this is intended behavior, but I assume this should be fixed, as currently you need to wrap you plot into panel manually if you don't want to center it, which is a bit inconvenient. * use Renderer's center property for HoloViews pane --- holoviews/plotting/renderer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/holoviews/plotting/renderer.py b/holoviews/plotting/renderer.py index 76572cd514..23300b4b41 100644 --- a/holoviews/plotting/renderer.py +++ b/holoviews/plotting/renderer.py @@ -303,7 +303,7 @@ def _validate(self, obj, fmt, **kwargs): plot = self.get_widget(obj, fmt) fmt = 'html' elif dynamic or (self._render_with_panel and fmt == 'html'): - plot = HoloViewsPane(obj, center=True, backend=self.backend, + plot = HoloViewsPane(obj, center=self.center, backend=self.backend, renderer=self) else: plot = self.get_plot(obj, renderer=self, **kwargs)