本文整理匯總了Python中boomslang.Line.marker方法的典型用法代碼示例。如果您正苦於以下問題:Python Line.marker方法的具體用法?Python Line.marker怎麽用?Python Line.marker使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類boomslang.Line
的用法示例。
在下文中一共展示了Line.marker方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: constructImage
# 需要導入模塊: from boomslang import Line [as 別名]
# 或者: from boomslang.Line import marker [as 別名]
def constructImage(self):
layout = PlotLayout()
plotBase10 = Plot()
plotBase10.loglog = True
lineBase10 = Line()
lineBase10.marker = 'x'
lineBase10.xValues = [1, 10, 100, 1000, 10000]
lineBase10.yValues = [1, 25, 140, 1024, 10342]
plotBase10.add(lineBase10)
plotBase2 = Plot()
plotBase2.logx = True
plotBase2.logbase = 2
lineBase2 = Line()
lineBase2.marker = 'x'
lineBase2.xValues = [1, 2, 4, 8, 16, 32, 64]
lineBase2.yValues = [1, 2, 3, 4, 5, 6, 7]
plotBase2.add(lineBase2)
layout.addPlot(plotBase10)
layout.addPlot(plotBase2)
layout.width = 2
layout.save(self.imageName)
示例2: generatePlot
# 需要導入模塊: from boomslang import Line [as 別名]
# 或者: from boomslang.Line import marker [as 別名]
def generatePlot(stepType):
line = Line()
line.xValues = xVals
line.yValues = yVals
line.marker = 'o'
line.stepFunction(stepType)
plot = Plot()
plot.add(line)
plot.setTitle(r'"%s" Steps' % (stepType))
plot.setXLimits(0, 6)
plot.setYLimits(0, 6)
return plot
示例3: generatePlot
# 需要導入模塊: from boomslang import Line [as 別名]
# 或者: from boomslang.Line import marker [as 別名]
def generatePlot(stepType):
line = Line()
line.xValues = xVals
line.yValues = yVals
line.marker = 'o'
line.stepFunction(stepType)
plot = Plot()
plot.add(line)
plot.title = r'"%s" Steps' % (stepType)
plot.xLimits = (0, 6)
plot.yLimits = (0, 6)
return plot