Avoid division by zero in hodograph production
This commit is contained in:
parent
eee4c781cc
commit
66392f0612
1 changed files with 3 additions and 0 deletions
|
@ -33,6 +33,9 @@ class Hodograph():
|
|||
box_height = max_y - min_y
|
||||
box = max(box_width, box_height) * 1.5
|
||||
|
||||
if box == 0:
|
||||
box = 1.5
|
||||
|
||||
#
|
||||
# Ensure the data points are centered within the hodograph
|
||||
# viewbox.
|
||||
|
|
Loading…
Add table
Reference in a new issue