Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1d9fba6

Browse files
committed
Semilogx, semilogy ensure one axis is linear; patch by Tony Yu
svn path=/branches/v0_99_maint/; revision=7584
1 parent 369a15c commit 1d9fba6

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lib/matplotlib/axes.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3601,6 +3601,7 @@ def semilogx(self, *args, **kwargs):
36013601
}
36023602

36033603
self.set_xscale('log', **d)
3604+
self.set_yscale('linear')
36043605
b = self._hold
36053606
self._hold = True # we've already processed the hold
36063607
l = self.plot(*args, **kwargs)
@@ -3651,6 +3652,7 @@ def semilogy(self, *args, **kwargs):
36513652
'nonposy': kwargs.pop('nonposy', 'mask'),
36523653
}
36533654
self.set_yscale('log', **d)
3655+
self.set_xscale('linear')
36543656
b = self._hold
36553657
self._hold = True # we've already processed the hold
36563658
l = self.plot(*args, **kwargs)

0 commit comments

Comments
 (0)