()
| 1445 | |
| 1446 | |
| 1447 | def test_subfigure_legend(): |
| 1448 | # Test that legend can be added to subfigure (#20723) |
| 1449 | subfig = plt.figure().subfigures() |
| 1450 | ax = subfig.subplots() |
| 1451 | ax.plot([0, 1], [0, 1], label="line") |
| 1452 | leg = subfig.legend() |
| 1453 | assert leg.get_figure(root=False) is subfig |
| 1454 | |
| 1455 | |
| 1456 | def test_setting_alpha_keeps_polycollection_color(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…