(self)
| 2537 | self.darray = darray |
| 2538 | |
| 2539 | def test_title_kwargs(self) -> None: |
| 2540 | g = xplt.FacetGrid(self.darray, col="col", row="row") |
| 2541 | g.set_titles(template="{value}", weight="bold") |
| 2542 | |
| 2543 | # Rightmost column titles should be bold |
| 2544 | for label, ax in zip( |
| 2545 | self.darray.coords["row"].values, g.axs[:, -1], strict=True |
| 2546 | ): |
| 2547 | assert property_in_axes_text("weight", "bold", label, ax) |
| 2548 | |
| 2549 | # Top row titles should be bold |
| 2550 | for label, ax in zip( |
| 2551 | self.darray.coords["col"].values, g.axs[0, :], strict=True |
| 2552 | ): |
| 2553 | assert property_in_axes_text("weight", "bold", label, ax) |
| 2554 | |
| 2555 | @pytest.mark.slow |
| 2556 | def test_default_labels(self) -> None: |
nothing calls this directly
no test coverage detected