MCPcopy Create free account
hub / github.com/matplotlib/matplotlib / append_size

Method append_size

lib/mpl_toolkits/axes_grid1/axes_divider.py:249–261  ·  view source on GitHub ↗
(self, position, size)

Source from the content-addressed store, hash-verified

247 return mtransforms.Bbox.from_bounds(x1, y1, w1, h1)
248
249 def append_size(self, position, size):
250 _api.check_in_list(["left", "right", "bottom", "top"],
251 position=position)
252 if position == "left":
253 self._horizontal.insert(0, size)
254 self._xrefindex += 1
255 elif position == "right":
256 self._horizontal.append(size)
257 elif position == "bottom":
258 self._vertical.insert(0, size)
259 self._yrefindex += 1
260 else: # 'top'
261 self._vertical.append(size)
262
263 def add_auto_adjustable_area(self, use_axes, pad=0.1, adjust_dirs=None):
264 """

Callers 3

new_horizontalMethod · 0.80
new_verticalMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected