Skip to content

Commit d793e3a

Browse files
author
Joe Hamman
committed
revert changes to yincrease and xincrease parameters, not necessary
1 parent 82cf7a7 commit d793e3a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

xray/plot/plot.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ def _plot2d(plotfunc):
331331

332332
@functools.wraps(plotfunc)
333333
def newplotfunc(darray, x=None, y=None, ax=None, row=None, col=None,
334-
col_wrap=None, xincrease=True, yincrease=True,
334+
col_wrap=None, xincrease=None, yincrease=None,
335335
add_colorbar=True, add_labels=True, vmin=None, vmax=None,
336336
cmap=None, center=None, robust=False, extend=None,
337337
levels=None, colors=None, subplot_kws=None, **kwargs):
@@ -434,7 +434,7 @@ def newplotfunc(darray, x=None, y=None, ax=None, row=None, col=None,
434434
# For use as DataArray.plot.plotmethod
435435
@functools.wraps(newplotfunc)
436436
def plotmethod(_PlotMethods_obj, x=None, y=None, ax=None, row=None,
437-
col=None, col_wrap=None, xincrease=True, yincrease=True,
437+
col=None, col_wrap=None, xincrease=None, yincrease=None,
438438
add_colorbar=True, add_labels=True, vmin=None, vmax=None,
439439
cmap=None, colors=None, center=None, robust=False,
440440
extend=None, levels=None, subplot_kws=None, **kwargs):

xray/test/test_plot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -707,7 +707,7 @@ def test_imshow_called(self):
707707
self.assertTrue(self.imshow_called(self.darray.plot.imshow))
708708

709709
def test_xy_pixel_centered(self):
710-
self.darray.plot.imshow(yincrease=None)
710+
self.darray.plot.imshow()
711711
self.assertTrue(np.allclose([-0.5, 14.5], plt.gca().get_xlim()))
712712
self.assertTrue(np.allclose([9.5, -0.5], plt.gca().get_ylim()))
713713

0 commit comments

Comments
 (0)