Revision: 5052 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=5052&view=rev Author: efiring Date: 2008年04月19日 18:33:46 -0700 (2008年4月19日) Log Message: ----------- Make FixedFormatter work on colorbar (bug report by Jiacong Huang) Modified Paths: -------------- trunk/matplotlib/lib/matplotlib/colorbar.py Modified: trunk/matplotlib/lib/matplotlib/colorbar.py =================================================================== --- trunk/matplotlib/lib/matplotlib/colorbar.py 2008年04月20日 00:57:40 UTC (rev 5051) +++ trunk/matplotlib/lib/matplotlib/colorbar.py 2008年04月20日 01:33:46 UTC (rev 5052) @@ -351,7 +351,7 @@ b = npy.array(locator()) b, ticks = self._locate(b) formatter.set_locs(b) - ticklabels = [formatter(t) for t in b] + ticklabels = [formatter(t, i) for i, t in enumerate(b)] offset_string = formatter.get_offset() return ticks, ticklabels, offset_string This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.