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

Method set_in_layout

lib/matplotlib/artist.py:1138–1149  ·  view source on GitHub ↗

Set if artist is to be included in layout calculations, E.g. :ref:`constrainedlayout_guide`, `.Figure.tight_layout()`, and ``fig.savefig(fname, bbox_inches='tight')``. Parameters ---------- in_layout : bool

(self, in_layout)

Source from the content-addressed store, hash-verified

1136 self.pchanged()
1137
1138 def set_in_layout(self, in_layout):
1139 """
1140 Set if artist is to be included in layout calculations,
1141 E.g. :ref:`constrainedlayout_guide`,
1142 `.Figure.tight_layout()`, and
1143 ``fig.savefig(fname, bbox_inches='tight')``.
1144
1145 Parameters
1146 ----------
1147 in_layout : bool
1148 """
1149 self._in_layout = in_layout
1150
1151 def _set_in_autoscale(self, b):
1152 """

Callers 6

set_positionMethod · 0.80
test_axis_not_in_layoutFunction · 0.80
test_tick_not_in_layoutFunction · 0.80
test_tightbboxFunction · 0.80

Calls

no outgoing calls

Tested by 3

test_axis_not_in_layoutFunction · 0.64
test_tick_not_in_layoutFunction · 0.64
test_tightbboxFunction · 0.64