コード例 #1
0
ファイル: scale.py プロジェクト: AlexSzatmary/matplotlib
 def __init__(self, base, linthresh):
     Transform.__init__(self)
     self.base = base
     self.linthresh = linthresh
     log_base = np.log(base)
     logb_linthresh = np.log(linthresh) / log_base
     self._linadjust = 1.0 - logb_linthresh
コード例 #2
0
 def __init__(self, base, linthresh):
     Transform.__init__(self)
     self.base = base
     self.linthresh = linthresh
     self._log_base = np.log(base)
     self._log_linthresh = np.log(linthresh) / self._log_base
     self._linadjust = linthresh / (np.log(linthresh) / self._log_base)
コード例 #3
0
ファイル: scale.py プロジェクト: AlexSzatmary/matplotlib
 def __init__(self, base, nonpos):
     Transform.__init__(self)
     self.base = base
     if nonpos == 'mask':
         self._handle_nonpos = _mask_non_positives
     else:
         self._handle_nonpos = _clip_non_positives
コード例 #4
0
 def __init__(self, base, nonpos):
     Transform.__init__(self)
     self.base = base
     if nonpos == 'mask':
         self._handle_nonpos = _mask_non_positives
     else:
         self._handle_nonpos = _clip_non_positives
コード例 #5
0
 def __init__(self, base, linthresh, linscale):
     Transform.__init__(self)
     self.base = base
     self.linthresh = linthresh
     self.linscale = linscale
     self._linscale_adj = (linscale / (1.0 - self.base ** -1))
     self._log_base = np.log(base)
コード例 #6
0
 def __init__(self, base, linthresh):
     Transform.__init__(self)
     self.base = base
     self.linthresh = linthresh
     self._log_base = np.log(base)
     self._log_linthresh = np.log(linthresh) / self._log_base
     self._linadjust = linthresh / (np.log(linthresh) / self._log_base)
コード例 #7
0
ファイル: scale.py プロジェクト: wrgiannjr/matplotlib
 def __init__(self, base, linthresh):
     Transform.__init__(self)
     self.base = base
     self.linthresh = linthresh
     log_base = np.log(base)
     logb_linthresh = np.log(linthresh) / log_base
     self._linadjust = 1.0 - logb_linthresh
コード例 #8
0
ファイル: scale.py プロジェクト: AlexSzatmary/matplotlib
 def __init__(self, base, linthresh):
     Transform.__init__(self)
     self.base = base
     self.linthresh = abs(linthresh)
     self._log_base = np.log(base)
     logb_linthresh = np.log(linthresh) / self._log_base
     self._linadjust = 1.0 - logb_linthresh
     self._linscale = 1.0 / linthresh
コード例 #9
0
 def __init__(self, base, linthresh, linscale):
     Transform.__init__(self)
     symlog = SymmetricalLogScale.SymmetricalLogTransform(base, linthresh, linscale)
     self.base = base
     self.linthresh = linthresh
     self.invlinthresh = symlog.transform(linthresh)
     self.linscale = linscale
     self._linscale_adj = (linscale / (1.0 - self.base ** -1))
コード例 #10
0
 def __init__(self, base, linthresh):
     Transform.__init__(self)
     self.base = base
     self.linthresh = abs(linthresh)
     self._log_base = np.log(base)
     logb_linthresh = np.log(linthresh) / self._log_base
     self._linadjust = 1.0 - logb_linthresh
     self._linscale = 1.0 / linthresh
コード例 #11
0
ファイル: scale.py プロジェクト: dhomeier/matplotlib-py3
 def __init__(self, base, linthresh):
     Transform.__init__(self)
     self.base = base
     self.linthresh = abs(linthresh)
     self._log_base = np.log(base)
     self._logb_linthresh = np.log(linthresh) / self._log_base
     self._logb_minlog = np.floor(self._logb_linthresh - 1e-10)
     self._linadjust = np.abs((np.log(linthresh) - self._logb_minlog) /
                              linthresh)
コード例 #12
0
ファイル: scale.py プロジェクト: ivanov/matplotlib-py3
 def __init__(self, base, linthresh):
     Transform.__init__(self)
     self.base = base
     self.linthresh = abs(linthresh)
     self._log_base = np.log(base)
     self._logb_linthresh = np.log(linthresh) / self._log_base
     self._logb_minlog = np.floor(self._logb_linthresh - 1e-10)
     self._linadjust = np.abs((np.log(linthresh) - self._logb_minlog) /
                              linthresh)
コード例 #13
0
ファイル: scale.py プロジェクト: AlexSzatmary/matplotlib
 def __init__(self, base):
     Transform.__init__(self)
     self.base = base
コード例 #14
0
 def __init__(self, base):
     Transform.__init__(self)
     self.base = base