def draw_rect(self, bbox, cell_val):
new_x0 = int(bbox[x0])<EOL>new_y0 = int(bbox[y0])<EOL>new_x1 = max(new_x0 + <NUM_LIT:1>, int(bbox[x1]))<EOL>new_y1 = max(new_y0 + <NUM_LIT:1>, int(bbox[y1]))<EOL>self.grid[new_x0:new_x1, new_y0:new_y1] = cell_val<EOL>
Fills the bbox with the content values
Float bbox values are normalized to have non-zero area