MCPcopy Index your code
hub / github.com/pydata/xarray / test_title_kwargs

Method test_title_kwargs

xarray/tests/test_plot.py:2539–2553  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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:

Callers

nothing calls this directly

Calls 2

set_titlesMethod · 0.95
property_in_axes_textFunction · 0.85

Tested by

no test coverage detected