Skip to content

Commit db169c6

Browse files
remove wrong input from other files
1 parent 54e2875 commit db169c6

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

pandas/tests/plotting/test_frame.py

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -231,40 +231,14 @@ def test_plot_xy(self):
231231
@pytest.mark.slow
232232
def test_logscales(self):
233233
df = DataFrame({'a': np.arange(100)}, index=np.arange(100))
234-
235234
ax = df.plot(logy=True)
236235
self._check_ax_scales(ax, yaxis='log')
237-
assert ax.get_yscale() == 'log'
238-
239-
ax = df.plot(logy='sym')
240-
self._check_ax_scales(ax, yaxis='symlog')
241-
assert ax.get_yscale() == 'symlog'
242236

243237
ax = df.plot(logx=True)
244238
self._check_ax_scales(ax, xaxis='log')
245-
assert ax.get_xscale() == 'log'
246-
247-
ax = df.plot(logx='sym')
248-
self._check_ax_scales(ax, xaxis='symlog')
249-
assert ax.get_xscale() == 'symlog'
250239

251240
ax = df.plot(loglog=True)
252241
self._check_ax_scales(ax, xaxis='log', yaxis='log')
253-
assert ax.get_xscale() == 'log'
254-
assert ax.get_yscale() == 'log'
255-
256-
ax = df.plot(loglog='sym')
257-
self._check_ax_scales(ax, xaxis='symlog', yaxis='symlog')
258-
assert ax.get_xscale() == 'symlog'
259-
assert ax.get_yscale() == 'symlog'
260-
261-
@pytest.mark.parametrize("wrong_input", ["sm", "symlog"])
262-
def test_invalid_logscale(self, wrong_input):
263-
df = DataFrame({'a': np.arange(100)}, index=np.arange(100))
264-
265-
msg = "Wrong input for log option."
266-
with pytest.raises(ValueError, match=msg):
267-
df.plot(logy=wrong_input)
268242

269243
@pytest.mark.slow
270244
def test_xcompat(self):

0 commit comments

Comments
 (0)