Ravi Gadhia (OpenERP) has proposed merging 
lp:~openerp-dev/openobject-client/trunk-bug-833837-rga into 
lp:openobject-client.

Requested reviews:
  Naresh(OpenERP) (nch-openerp)
Related bugs:
  Bug #833837 in OpenERP GTK Client: "Large number in dashboard graph wrong in 
GTK Client"
  https://bugs.launchpad.net/openobject-client/+bug/833837

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-client/trunk-bug-833837-rga/+merge/81559
-- 
https://code.launchpad.net/~openerp-dev/openobject-client/trunk-bug-833837-rga/+merge/81559
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-client/trunk-bug-833837-rga.
=== modified file 'bin/tinygraph/__init__.py'
--- bin/tinygraph/__init__.py	2011-01-06 10:27:51 +0000
+++ bin/tinygraph/__init__.py	2011-11-08 11:30:55 +0000
@@ -22,6 +22,7 @@
 from tools import user_locale_format
 HM_FORMAT = ' %H:%M:%S'
 from datetime import datetime
+from matplotlib.ticker import FormatStrFormatter
 
 import matplotlib
 matplotlib.use('GTKCairo')
@@ -117,6 +118,7 @@
             subplot.set_xticks(ind)
             subplot.set_xticklabels(tuple(axis_lable), visible=True, ha='right', size=8, rotation='vertical')
             subplot.yaxis.grid(True,'major',linestyle='-',color='gray')
+            subplot.yaxis.set_major_formatter(FormatStrFormatter('%0.0f'))
 
         colors = choice_colors(max(n,len(axis_group)))
         for i in range(n):

_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to     : openerp-dev-gtk@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help   : https://help.launchpad.net/ListHelp

Reply via email to