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

Method test_xy_pixel_centered

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

Source from the content-addressed store, hash-verified

2020 assert self.imshow_called(self.darray.plot.imshow)
2021
2022 def test_xy_pixel_centered(self) -> None:
2023 self.darray.plot.imshow(yincrease=False)
2024 assert np.allclose([-0.5, 14.5], plt.gca().get_xlim())
2025 assert np.allclose([9.5, -0.5], plt.gca().get_ylim())
2026
2027 def test_default_aspect_is_auto(self) -> None:
2028 self.darray.plot.imshow()

Callers

nothing calls this directly

Calls 1

imshowMethod · 0.80

Tested by

no test coverage detected