|
From: Friedrich R. <fri...@gm...> - 2010-10-19 19:33:29
|
2010/10/19 Dharhas Pothina <Dha...@tw...>: > I'm assuming this is possible and common but I'm not finding the correct combination of search terms to find any examples on the mailing list or online on how to do this. > > I'd like to display the y-axis tick labels in the 'comma' notation i.e. > > 234004 = 234,004 > 1237689 = 1,237,689 You could write your own formatter, don't be scared. The following might be a good starting point: http://matplotlib.sourceforge.net/api/ticker_api.html#matplotlib.ticker.FuncFormatter You just need to write a function inserting the comma into the number's string repr() given a plain Python number. If I'm not mistaken this feature has never been requested so far, AFAICT. Just got Goekhan's message, try a combination of both, might be worth. hthy, Friedrich |