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

Function _subplots

lib/matplotlib/tests/test_tightlayout.py:240–246  ·  view source on GitHub ↗
(with_boxes)

Source from the content-addressed store, hash-verified

238 x = y = [0, 1]
239
240 def _subplots(with_boxes):
241 fig, axs = plt.subplots(rows, cols)
242 for ax, color in zip(axs.flat, colors):
243 ax.plot(x, y, color=color)
244 if with_boxes:
245 add_offsetboxes(ax, 20, color=color)
246 return fig, axs
247
248 # 0.
249 fig0, axs0 = _subplots(False)

Callers 1

Calls 3

add_offsetboxesFunction · 0.85
subplotsMethod · 0.45
plotMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…