示例#1
0
    def constructImage(self):
        plot = Plot()

        line = Line()
        line.yValues = [25, 40, 30, 23, 10, 50]
        line.xValues = range(len(line.yValues))

        plot.add(line)
        plot.setXLabel("X Label")
        plot.setYLabel("Y Label")
        plot.setYLimits(0, 60)

        plot.setXTickLabelSize(24)
        plot.setYTickLabelSize(36)
        plot.setAxesLabelSize(18)

        plot.setPlotParameters(bottom=0.14)

        plot.save(self.imageName)