(self)
| 655 | |
| 656 | @pytest.mark.slow |
| 657 | def test_subplot_kws(self) -> None: |
| 658 | a = easy_array((10, 15, 4)) |
| 659 | d = DataArray(a, dims=["y", "x", "z"]) |
| 660 | d.coords["z"] = list("abcd") |
| 661 | g = d.plot( # type: ignore[call-arg] |
| 662 | x="x", |
| 663 | y="y", |
| 664 | col="z", |
| 665 | col_wrap=2, |
| 666 | cmap="cool", |
| 667 | subplot_kws=dict(facecolor="r"), |
| 668 | ) |
| 669 | for ax in g.axs.flat: |
| 670 | # mpl V2 |
| 671 | assert ax.get_facecolor()[0:3] == mpl.colors.to_rgb("r") |
| 672 | |
| 673 | @pytest.mark.slow |
| 674 | def test_plot_size(self) -> None: |
nothing calls this directly
no test coverage detected