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