Make hodograph zoom, alignment optional
This commit is contained in:
parent
d0e1b763a7
commit
2f492dd16c
1 changed files with 3 additions and 2 deletions
|
@ -308,7 +308,8 @@ class Hodograph():
|
||||||
|
|
||||||
offset += interval
|
offset += interval
|
||||||
|
|
||||||
def draw(self, cr: cairo.Context, x, y, sounding: Sounding):
|
def draw(self, cr: cairo.Context, x, y, sounding: Sounding, zoom: bool=True):
|
||||||
|
if zoom:
|
||||||
self.extents = self.find_extents(sounding)
|
self.extents = self.find_extents(sounding)
|
||||||
|
|
||||||
cr.rectangle(x, y, self.width, self.height)
|
cr.rectangle(x, y, self.width, self.height)
|
||||||
|
|
Loading…
Add table
Reference in a new issue