本文整理汇总了Python中boomslang.Plot.useLatexLabels方法的典型用法代码示例。如果您正苦于以下问题:Python Plot.useLatexLabels方法的具体用法?Python Plot.useLatexLabels怎么用?Python Plot.useLatexLabels使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类boomslang.Plot
的用法示例。
在下文中一共展示了Plot.useLatexLabels方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: constructImage
# 需要导入模块: from boomslang import Plot [as 别名]
# 或者: from boomslang.Plot import useLatexLabels [as 别名]
def constructImage(self):
line = Line()
line.xValues = [0, 1, 2, 3, 4, 5,
6, 7, 8, 9, 10]
line.yValues = [0, 1, 4, 9, 16, 25,
36, 49, 64, 81, 100]
plot = Plot()
plot.useLatexLabels()
plot.xLabel = r"$x$"
plot.yLabel = r"$f(x) = x^2$"
plot.title = (
r"LaTeX is Number $\sum_{n=1}^{\infty}"
r"\frac{-e^{i\pi}}{2^n}$")
plot.add(line)
plot.tight = True
plot.axesLabelSize = 18
plot.save(self.imageName)
示例2: constructImage
# 需要导入模块: from boomslang import Plot [as 别名]
# 或者: from boomslang.Plot import useLatexLabels [as 别名]
def constructImage(self):
line = Line()
line.xValues = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
line.yValues = [0, 1, 4, 9, 16, 25, 36, 49, 64, 81, 100]
plot = Plot()
plot.useLatexLabels()
plot.setXLabel(r"$x$")
plot.setYLabel(r"$f(x) = x^2$")
plot.setTitle(r"LaTeX is Number $\sum_{n=1}^{\infty}\frac{-e^{i\pi}}{2^n}$")
plot.add(line)
layout = PlotLayout()
layout.useLatexLabels()
layout.addPlot(plot)
layout.setAxesLabelSize(18)
layout.setPlotParameters(top=0.84)
layout.save(self.imageName)
示例3: Line
# 需要导入模块: from boomslang import Plot [as 别名]
# 或者: from boomslang.Plot import useLatexLabels [as 别名]
#!/usr/bin/env python
from boomslang import Line, Plot, PlotLayout
line = Line()
line.xValues = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
line.yValues = [0, 1, 4, 9, 16, 25, 36, 49, 64, 81, 100]
plot = Plot()
plot.useLatexLabels()
plot.setXLabel(r"$x$")
plot.setYLabel(r"$f(x) = x^2$")
plot.setTitle(r"LaTeX is Number $\sum_{n=1}^{\infty}\frac{-e^{i\pi}}{2^n}$")
plot.add(line)
layout = PlotLayout()
layout.addPlot(plot)
layout.setAxesLabelSize(18)
layout.setPlotParameters(top=0.84)
layout.save("latex.png")