Zoom hodograph out a bit
This commit is contained in:
parent
66ca08c1ff
commit
5307498522
1 changed files with 5 additions and 1 deletions
|
@ -40,8 +40,12 @@ class Hodograph():
|
|||
|
||||
box_width = max_x - min_x
|
||||
box_height = max_y - min_y
|
||||
box = max(box_width, box_height)
|
||||
box = max(box_width, box_height) * 1.5
|
||||
|
||||
#
|
||||
# Ensure the data points are centered within the hodograph
|
||||
# viewbox.
|
||||
#
|
||||
offset_x = self.width * ((box - box_width) / box) / 2
|
||||
offset_y = self.height * ((box - box_height) / box) / 2
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue