(self, legend, orig_handle,
xdescent, ydescent, width, height, fontsize)
| 338 | self._patch_func = patch_func |
| 339 | |
| 340 | def _create_patch(self, legend, orig_handle, |
| 341 | xdescent, ydescent, width, height, fontsize): |
| 342 | if self._patch_func is None: |
| 343 | p = Rectangle(xy=(-xdescent, -ydescent), |
| 344 | width=width, height=height) |
| 345 | else: |
| 346 | p = self._patch_func(legend=legend, orig_handle=orig_handle, |
| 347 | xdescent=xdescent, ydescent=ydescent, |
| 348 | width=width, height=height, fontsize=fontsize) |
| 349 | return p |
| 350 | |
| 351 | def create_artists(self, legend, orig_handle, |
| 352 | xdescent, ydescent, width, height, fontsize, trans): |
no test coverage detected