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

Skip to content

Commit fe17c75

Browse files
committed
InvLogTransform should only return masked arrays for masked inputs.
This is similar to the approach in b218e7c, which made sure that SymmetricalLogTransform no longer returns masked arrays for nonmasked inputs.
1 parent 092f833 commit fe17c75

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/matplotlib/scale.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
import textwrap
1717

1818
import numpy as np
19-
from numpy import ma
2019

2120
import matplotlib as mpl
2221
from matplotlib import _api, docstring
@@ -251,7 +250,7 @@ def __str__(self):
251250
return "{}(base={})".format(type(self).__name__, self.base)
252251

253252
def transform_non_affine(self, a):
254-
return ma.power(self.base, a)
253+
return np.power(self.base, a)
255254

256255
def inverted(self):
257256
return LogTransform(self.base)

0 commit comments

Comments
 (0)