From: <ef...@us...> - 2008-04-20 01:33:48
|
Revision: 5052 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=5052&view=rev Author: efiring Date: 2008-04-19 18:33:46 -0700 (Sat, 19 Apr 2008) 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. |