File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -18,10 +18,7 @@ including other versions of pandas.
18
18
19
19
Other Enhancements
20
20
^^^^^^^^^^^^^^^^^^
21
-
22
- -
23
- -
24
- -
21
+ :func: `DataFrame.plot ` allows to expose symlog scaling for axis.
25
22
26
23
27
24
.. _whatsnew_0250.api_breaking :
Original file line number Diff line number Diff line change @@ -258,6 +258,14 @@ def test_logscales(self):
258
258
assert ax .get_xscale () == 'symlog'
259
259
assert ax .get_yscale () == 'symlog'
260
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 = "Valid inputs are boolean, None and 'sym'."
266
+ with pytest .raises (ValueError , match = msg ):
267
+ df .plot (logy = wrong_input )
268
+
261
269
@pytest .mark .slow
262
270
def test_xcompat (self ):
263
271
import pandas as pd
You can’t perform that action at this time.
0 commit comments