Check for finite values before calculating aspect bounds
@@ -212,8 +212,8 @@ export class PlotCanvasView extends DOMView
if @model.plot.match_aspect != false and @frame._width.value != 0 and @frame._height.value != 0
r = 1/@model.plot.aspect_scale*(@frame._width.value/@frame._height.value)
-
for k, v of bounds
+ if isFinite(v.maxX) and isFinite(v.minX) and isFinite(v.maxY) and isFinite(v.minY)
width = v.maxX - v.minX
if width <= 0
width = 1.0
