Mercurial > sqlpython
comparison sqlpyPlus.py @ 152:c26bc528cb05
separation of Plot class successful
author | catherine@Elli.myhome.westell.com |
---|---|
date | Fri, 26 Sep 2008 16:31:17 -0400 |
parents | 802d8df993da |
children | ebdd20cfba69 |
comparison
equal
deleted
inserted
replaced
151:802d8df993da | 152:c26bc528cb05 |
---|---|
367 if not self.yserieslists: | 367 if not self.yserieslists: |
368 result = 'At least one quantitative column needed to plot.' | 368 result = 'At least one quantitative column needed to plot.' |
369 return result | 369 return result |
370 if self.xticks: | 370 if self.xticks: |
371 pylab.xticks(self.xvalues, self.xticks) | 371 pylab.xticks(self.xvalues, self.xticks) |
372 for (colName, yseries) in self.yserieslists.items(): | 372 for yseries in self.yserieslists: |
373 pylab.plot(xvalues, yseries, '-o') | 373 pylab.plot(self.xvalues, yseries, '-o') |
374 pylab.xlabel(self.xlabel) | 374 pylab.xlabel(self.xlabel) |
375 pylab.title(self.title) | 375 pylab.title(self.title) |
376 pylab.legend(self.legends) | 376 pylab.legend(self.legends) |
377 pylab.show() | 377 pylab.show() |
378 return 'If your lines zigzag, you may want to ORDER BY the x axis.' | 378 return 'If your lines zigzag, you may want to ORDER BY the x axis.' |