Test step plot with intervals.
(self)
| 876 | assert hdl[0].get_drawstyle() == f"steps-{where}" |
| 877 | |
| 878 | def test_coord_with_interval_step(self) -> None: |
| 879 | """Test step plot with intervals.""" |
| 880 | bins = [-1, 0, 1, 2] |
| 881 | self.darray.groupby_bins("dim_0", bins).mean(...).plot.step() |
| 882 | line = plt.gca().lines[0] |
| 883 | assert isinstance(line, mpl.lines.Line2D) |
| 884 | assert len(np.asarray(line.get_xdata())) == ((len(bins) - 1) * 2) |
| 885 | |
| 886 | def test_coord_with_interval_step_x(self) -> None: |
| 887 | """Test step plot with intervals explicitly on x axis.""" |
nothing calls this directly
no test coverage detected