()
| 1520 | @image_comparison(['test_subfigure_scatter_size.png'], style='mpl20', |
| 1521 | remove_text=True) |
| 1522 | def 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 | |
| 1537 | def test_subfigure_pdf(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…