Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

more gchart update

git-svn-id: https://pyjamas.svn.sourceforge.net/svnroot/pyjamas/trunk@1607 7a2bd370-bda8-463c-979e-2900ccfb811e
  • Loading branch information...
commit 3f9a436e4c52e6cad5db4024622b78b78198f767 1 parent abcce90
lkcl authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 examples/gcharttestapp/TestGChart02.py
View
6 examples/gcharttestapp/TestGChart02.py
@@ -77,15 +77,15 @@ def __init__(self):
self.getCurve(i).getSymbol().setSymbolType(symbolTypes[i])
self.getCurve(i).getSymbol().setHeight(7)
self.getCurve(i).getSymbol().setWidth(7)
- self.getCurve(i).setLegendLabel(i + " " + symbolNames[i])
+ self.getCurve(i).setLegendLabel("%d %s " % (i, symbolNames[i]))
self.setLegendFontSize(8)
self.getXAxis().setTickLabelFontSize(8)
self.getXAxis().setHasGridlines(True)
- self.getXAxis().setTickCount(symbolTypes.length)
+ self.getXAxis().setTickCount(len(symbolTypes))
self.getYAxis().setTickLabelFontSize(8)
self.getYAxis().setHasGridlines(True)
- self.getYAxis().setTickCount(symbolTypes.length)
+ self.getYAxis().setTickCount(len(symbolTypes))
Please sign in to comment.
Something went wrong with that request. Please try again.