From: hjc520070 <jia...@16...> - 2008-04-20 04:36:01
|
Thanks for Eric Firing's reply to me.The solution is: colorbar(im, extend='both', shrink=0.8,format='%0.1f%%',ticks=locator) The double % in the format string makes it print a single %, and when given a format string, the format kwarg automatically hands it off to a FormatStrFormatter. -- View this message in context: http://www.nabble.com/formatter-on-colorbar-----tp16656691p16790326.html Sent from the matplotlib - users mailing list archive at Nabble.com. |