本文整理汇总了Python中boomslang.Plot.xTickLabelSize方法的典型用法代码示例。如果您正苦于以下问题:Python Plot.xTickLabelSize方法的具体用法?Python Plot.xTickLabelSize怎么用?Python Plot.xTickLabelSize使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类boomslang.Plot
的用法示例。
在下文中一共展示了Plot.xTickLabelSize方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: main
# 需要导入模块: from boomslang import Plot [as 别名]
# 或者: from boomslang.Plot import xTickLabelSize [as 别名]
def main():
output_graph = sys.argv[1]
plot = Plot()
plot.hasLegend(location='lower right')
plot.xLabel = 'Per-client throughput (Mbps)' # Change this
plot.yLabel = 'CDF'
plot.xLimits = (0, 50)
plot.yLimits = (0, 1)
plot.legendLabelSize = FONT_SIZE
plot.xTickLabelSize = FONT_SIZE - 2
plot.yTickLabelSize = FONT_SIZE - 2
plot.axesLabelSize = FONT_SIZE
for csv_file in sys.argv[2:]:
cdf_table = _make_cdf(csv_file)
line = Line()
line.xValues = [x for (x, _) in cdf_table]
line.yValues = [y for (_, y) in cdf_table]
line.color = colors.pop(0)
line.lineStyle = line_styles.pop(0)
# Extract the filename
line.label = capitalize( csv_file.split('/')[-2].replace('.csv', '') )
plot.add(line)
plot.save(output_graph)
示例2: constructImage
# 需要导入模块: from boomslang import Plot [as 别名]
# 或者: from boomslang.Plot import xTickLabelSize [as 别名]
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.xLabel = "X Label"
plot.yLabel = "Y Label"
plot.yLimits = (0, 60)
plot.xTickLabelSize = 24
plot.yTickLabelSize = 36
plot.axesLabelSize = 18
plot.tight = True
plot.save(self.imageName)