Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 25b6c53 commit f9a87e5Copy full SHA for f9a87e5
1 file changed
lib/mpl_toolkits/exceltools.py
@@ -55,9 +55,9 @@ def xlformat_factory(format):
55
56
xlstyle = excel.XFStyle()
57
if isinstance(format, mlab.FormatPercent):
58
- zeros = ''.join(['0']*format.precision)
59
- xlstyle.num_format_str = '0.%s%%;[RED]-0.%s%%'%(zeros, zeros)
60
- format.scale = 1.
+ zeros = ''.join(['0']*format.precision)
+ xlstyle.num_format_str = '0.%s%%;[RED]-0.%s%%'%(zeros, zeros)
+ format.scale = 1.
61
elif isinstance(format, mlab.FormatFloat):
62
if format.precision>0:
63
zeros = ''.join(['0']*format.precision)
0 commit comments