(self)
| 2143 | da.plot.imshow() |
| 2144 | |
| 2145 | def test_origin_overrides_xyincrease(self) -> None: |
| 2146 | da = DataArray(easy_array((3, 2)), coords=[[-2, 0, 2], [-1, 1]]) |
| 2147 | with figure_context(): |
| 2148 | da.plot.imshow(origin="upper") |
| 2149 | assert plt.xlim()[0] < 0 |
| 2150 | assert plt.ylim()[1] < 0 |
| 2151 | |
| 2152 | with figure_context(): |
| 2153 | da.plot.imshow(origin="lower") |
| 2154 | assert plt.xlim()[0] < 0 |
| 2155 | assert plt.ylim()[0] < 0 |
| 2156 | |
| 2157 | |
| 2158 | class TestSurface(Common2dMixin, PlotTestCase): |
nothing calls this directly
no test coverage detected