SourceForge logo
SourceForge logo
Menu

matplotlib-devel

From: Ryan M. <rm...@gm...> - 2008年06月27日 22:49:09
Hi,
I think I found a bug while looking over scale.py:
 127 class InvertedNaturalLogTransform(Transform):
 128 input_dims = 1
 129 output_dims = 1
 130 is_separable = True
 131 base = np.e
 132
 133 def transform(self, a):
 134 return ma.power(np.e, a) / np.e
 135
 136 def inverted(self):
 137 return LogScale.Log2Transform()
Shouldn't line 137 instead read:
	return LogScale.NaturalLogTransform()
Ryan
-- 
Ryan May
Graduate Research Assistant
School of Meteorology
University of Oklahoma
From: Michael D. <md...@st...> - 2008年06月30日 12:14:06
Yes. Thank you for finding this. Fixed in SVN.
Cheers,
Mike
Ryan May wrote:
> Hi,
>
> I think I found a bug while looking over scale.py:
>
> 127 class InvertedNaturalLogTransform(Transform):
> 128 input_dims = 1
> 129 output_dims = 1
> 130 is_separable = True
> 131 base = np.e
> 132
> 133 def transform(self, a):
> 134 return ma.power(np.e, a) / np.e
> 135
> 136 def inverted(self):
> 137 return LogScale.Log2Transform()
>
> Shouldn't line 137 instead read:
> 	return LogScale.NaturalLogTransform()
>
> Ryan
>
> 
-- 
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /