Skip to content

Commit

Permalink
use Renderer's center property for HoloViews pane (#5197)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
stas-sl authored Apr 8, 2022
1 parent 2c53536 commit fd72219
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion holoviews/plotting/renderer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit fd72219

Please sign in to comment.