Edge case for data of shape (1, N) or (N, 1).
(self)
| 828 | assert "d = 10.01" == title |
| 829 | |
| 830 | def test_slice_in_title_single_item_array(self) -> None: |
| 831 | """Edge case for data of shape (1, N) or (N, 1).""" |
| 832 | darray = self.darray.expand_dims({"d": np.array([10.009])}) |
| 833 | darray.plot.line(x="period") |
| 834 | title = plt.gca().get_title() |
| 835 | assert "d = [10.009]" == title |
| 836 | |
| 837 | def test_warns_for_few_positional_args(self) -> None: |
| 838 | with pytest.warns(FutureWarning, match="Using positional arguments"): |
nothing calls this directly
no test coverage detected