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

Function test_subfigure_scatter_size

lib/matplotlib/tests/test_figure.py:1522–1534  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1520@image_comparison(['test_subfigure_scatter_size.png'], style='mpl20',
1521 remove_text=True)
1522def test_subfigure_scatter_size():
1523 # markers in the left- and right-most subplots should be the same
1524 fig = plt.figure()
1525 gs = fig.add_gridspec(1, 2)
1526 ax0 = fig.add_subplot(gs[1])
1527 ax0.scatter([1, 2, 3], [1, 2, 3], s=30, marker='s')
1528 ax0.scatter([3, 4, 5], [1, 2, 3], s=[20, 30, 40], marker='s')
1529
1530 sfig = fig.add_subfigure(gs[0])
1531 axs = sfig.subplots(1, 2)
1532 for ax in [ax0, axs[0]]:
1533 ax.scatter([1, 2, 3], [1, 2, 3], s=30, marker='s', color='r')
1534 ax.scatter([3, 4, 5], [1, 2, 3], s=[20, 30, 40], marker='s', color='g')
1535
1536
1537def test_subfigure_pdf():

Callers

nothing calls this directly

Calls 6

figureMethod · 0.80
add_gridspecMethod · 0.80
add_subplotMethod · 0.80
add_subfigureMethod · 0.80
scatterMethod · 0.45
subplotsMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…