Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb042f6 commit 4fa16f3Copy full SHA for 4fa16f3
lib/matplotlib/cbook.py
@@ -2719,12 +2719,12 @@ class _StringFuncParser(object):
2719
np.sqrt,
2720
True)
2721
_funcs['cubic'] = _FuncInfo(lambda x: x**3,
2722
- np.cbrt,
+ lambda x: x**(1. / 3),
2723
2724
_funcs['sqrt'] = _FuncInfo(np.sqrt,
2725
np.square,
2726
2727
- _funcs['cbrt'] = _FuncInfo(np.cbrt,
+ _funcs['cbrt'] = _FuncInfo(lambda x: x**(1. / 3),
2728
lambda x: x**3,
2729
2730
_funcs['log10'] = _FuncInfo(np.log10,
lib/matplotlib/tests/test_cbook.py
@@ -530,7 +530,7 @@ class TestFuncParser(object):
530
531
(lambda x: x**3),
532
533
+ (lambda x: x**(1. / 3)),
534
np.log,
535
np.log10,
536
np.log2,
0 commit comments