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

Method test_origin_overrides_xyincrease

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

Source from the content-addressed store, hash-verified

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
2158class TestSurface(Common2dMixin, PlotTestCase):

Callers

nothing calls this directly

Calls 4

DataArrayClass · 0.90
easy_arrayFunction · 0.85
figure_contextFunction · 0.85
imshowMethod · 0.80

Tested by

no test coverage detected