def draw_outline(patch: patches.Patch, lw: int) -> None: stroke = patheffects.Stroke(linewidth=lw, foreground='black') normal = patheffects.Normal() patch.set_path_effects([stroke, normal])
def _draw_outline(o:Patch, lw:int): "Outline bounding box onto image `Patch`." o.set_path_effects([patheffects.Stroke( linewidth=lw, foreground='black'), patheffects.Normal()])