Skip to content

Commit

Permalink
Fix aspect handling when plot size is still unknown
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Jul 14, 2023
1 parent ae79eec commit 0e4cff1
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 @@ -848,8 +848,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:
# Skip if aspect can't be determined
return

if self.drawn:
current_l, current_r = plot.x_range.start, plot.x_range.end
Expand Down

0 comments on commit 0e4cff1

Please sign in to comment.