Skip to content

Commit

Permalink
Do not set aspect unless we know the frame dimensions
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Jul 12, 2021
1 parent 9e193f1 commit a789513
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion holoviews/plotting/bokeh/element.py
Original file line number Diff line number Diff line change
Expand Up @@ -853,8 +853,11 @@ def _update_ranges(self, element, ranges):
frame_aspect = 1
elif self.aspect and self.aspect != 'equal':
frame_aspect = self.aspect
else:
elif plot.frame_height and plot.frame_width:
frame_aspect = plot.frame_height/plot.frame_width
else:
# Cannot force an aspect until we know the frame size
return

range_streams = [s for s in self.streams if isinstance(s, RangeXY)]
if self.drawn:
Expand Down

0 comments on commit a789513

Please sign in to comment.