> Just got Goekhan's message, try a combination of both, might be worth.
a little inelegant but I got it working by combining both ideas: def thousands(x, pos): 'The two args are the value and tick position' xnew = moneyfmt(Decimal(x.__str__())) return xnew where moneyfmt is the function defined in Gokhan's link. and then: formatter = FuncFormatter(thousands) ... ax1.yaxis.set_major_formatter(formatter) thanks - d ------------------------------------------------------------------------------ Download new Adobe(R) Flash(R) Builder(TM) 4 The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly Flex(R) Builder(TM)) enable the development of rich applications that run across multiple browsers and platforms. Download your free trials today! http://p.sf.net/sfu/adobe-dev2dev _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users