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

Method add_constraints

lib/matplotlib/_layoutgrid.py:130–137  ·  view source on GitHub ↗
(self, parent)

Source from the content-addressed store, hash-verified

128 self.edit_margins(todo, 0.0)
129
130 def add_constraints(self, parent):
131 # define self-consistent constraints
132 self.hard_constraints()
133 # define relationship with parent layoutgrid:
134 self.parent_constraints(parent)
135 # define relative widths of the grid cells to each other
136 # and stack horizontally and vertically.
137 self.grid_constraints()
138
139 def hard_constraints(self):
140 """

Callers 1

__init__Method · 0.95

Calls 3

hard_constraintsMethod · 0.95
parent_constraintsMethod · 0.95
grid_constraintsMethod · 0.95

Tested by

no test coverage detected