SourceForge logo
SourceForge logo
Menu

SF.net SVN: matplotlib: [5052] trunk/matplotlib/lib/matplotlib/colorbar.py

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 (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.

View entire thread

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 によって変換されたページ (->オリジナル) /