Parameters ---------- child : `~matplotlib.artist.Artist` The contained `.Artist`. pad : float, default: 0.0 The padding in points. This will be scaled with the renderer dpi. In contrast, *width* and *height* are in *pixels* and th
(self, child, pad=0., *, draw_frame=False, patch_attrs=None)
| 535 | """ |
| 536 | |
| 537 | def __init__(self, child, pad=0., *, draw_frame=False, patch_attrs=None): |
| 538 | """ |
| 539 | Parameters |
| 540 | ---------- |
| 541 | child : `~matplotlib.artist.Artist` |
| 542 | The contained `.Artist`. |
| 543 | pad : float, default: 0.0 |
| 544 | The padding in points. This will be scaled with the renderer dpi. |
| 545 | In contrast, *width* and *height* are in *pixels* and thus not |
| 546 | scaled. |
| 547 | draw_frame : bool |
| 548 | Whether to draw the contained `.FancyBboxPatch`. |
| 549 | patch_attrs : dict or None |
| 550 | Additional parameters passed to the contained `.FancyBboxPatch`. |
| 551 | """ |
| 552 | super().__init__() |
| 553 | self.pad = pad |
| 554 | self._children = [child] |
| 555 | self.patch = FancyBboxPatch( |
| 556 | xy=(0.0, 0.0), width=1., height=1., |
| 557 | facecolor='w', edgecolor='k', |
| 558 | mutation_scale=1, # self.prop.get_size_in_points(), |
| 559 | snap=True, |
| 560 | visible=draw_frame, |
| 561 | boxstyle="square,pad=0", |
| 562 | ) |
| 563 | if patch_attrs is not None: |
| 564 | self.patch.update(patch_attrs) |
| 565 | |
| 566 | def _get_bbox_and_child_offsets(self, renderer): |
| 567 | # docstring inherited. |
nothing calls this directly
no test coverage detected