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

Method test_coord_with_interval_xy

xarray/tests/test_plot.py:728–731  ·  view source on GitHub ↗

Test line plot with intervals on both x and y axes.

(self)

Source from the content-addressed store, hash-verified

726 self.darray.groupby_bins("dim_0", bins).mean(...).plot(y="dim_0_bins") # type: ignore[call-arg]
727
728 def test_coord_with_interval_xy(self) -> None:
729 """Test line plot with intervals on both x and y axes."""
730 bins = [-1, 0, 1, 2]
731 self.darray.groupby_bins("dim_0", bins).mean(...).dim_0_bins.plot()
732
733 @pytest.mark.parametrize("dim", ("x", "y"))
734 def test_labels_with_units_with_interval(self, dim) -> None:

Callers

nothing calls this directly

Calls 3

plotMethod · 0.80
meanMethod · 0.45
groupby_binsMethod · 0.45

Tested by

no test coverage detected