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

Method set_figure

lib/matplotlib/axes/_base.py:880–892  ·  view source on GitHub ↗
(self, fig)

Source from the content-addressed store, hash-verified

878 self.spines.right.register_axis(self.yaxis)
879
880 def set_figure(self, fig):
881 # docstring inherited
882 super().set_figure(fig)
883
884 self.bbox = mtransforms.TransformedBbox(self._position,
885 fig.transSubfigure)
886 # these will be updated later as data is added
887 self.dataLim = mtransforms.Bbox.null()
888 self._viewLim = mtransforms.Bbox.unit()
889 self.transScale = mtransforms.TransformWrapper(
890 mtransforms.IdentityTransform())
891
892 self._set_lim_and_transforms()
893
894 def _unstale_viewLim(self):
895 # We should arrange to store this information once per share-group

Callers 5

__init__Method · 0.95
_set_artist_propsMethod · 0.45
__clearMethod · 0.45
test_set_figureFunction · 0.45

Calls 3

nullMethod · 0.80
unitMethod · 0.80

Tested by 2

test_set_figureFunction · 0.36