MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / set_clip_box

Method set_clip_box

lib/matplotlib/artist.py:808–824  ·  view source on GitHub ↗

Set the artist's clip `.Bbox`. Parameters ---------- clipbox : `~matplotlib.transforms.BboxBase` or None Will typically be created from a `.TransformedBbox`. For instance, ``TransformedBbox(Bbox([[0, 0], [1, 1]]), ax.transAxes)`` is the defau

(self, clipbox)

Source from the content-addressed store, hash-verified

806 "control, use the `get_figure` method."))
807
808 def set_clip_box(self, clipbox):
809 """
810 Set the artist's clip `.Bbox`.
811
812 Parameters
813 ----------
814 clipbox : `~matplotlib.transforms.BboxBase` or None
815 Will typically be created from a `.TransformedBbox`. For instance,
816 ``TransformedBbox(Bbox([[0, 0], [1, 1]]), ax.transAxes)`` is the default
817 clipping for an artist added to an Axes.
818
819 """
820 _api.check_isinstance((BboxBase, None), clipbox=clipbox)
821 if clipbox != self.clipbox:
822 self.clipbox = clipbox
823 self.pchanged()
824 self.stale = True
825
826 def set_clip_path(self, path, transform=None):
827 """

Callers

nothing calls this directly

Calls 1

pchangedMethod · 0.95

Tested by

no test coverage detected