We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
SyntaxWarnings
readthedocs
1 parent 46dbf3d commit 112c99bCopy full SHA for 112c99b
.readthedocs.yml
@@ -3,7 +3,7 @@ build:
3
os: ubuntu-22.04
4
5
tools:
6
- python: "3.11"
+ python: "3.13"
7
8
apt_packages:
9
- libpango1.0-dev
docs/source/examples.rst
@@ -341,7 +341,7 @@ Plotting with Manim
341
axes.i2gp(TAU, cos_graph), color=YELLOW, line_func=Line
342
)
343
line_label = axes.get_graph_label(
344
- cos_graph, "x=2\pi", x_val=TAU, direction=UR, color=WHITE
+ cos_graph, r"x=2\pi", x_val=TAU, direction=UR, color=WHITE
345
346
347
plot = VGroup(axes, sin_graph, cos_graph, vert_line)
@@ -482,7 +482,7 @@ Plotting with Manim
482
tips=False,
483
484
labels = ax.get_axis_labels(
485
- x_label=Tex("$\Delta Q$"), y_label=Tex("T[$^\circ C$]")
+ x_label=Tex(r"$\Delta Q$"), y_label=Tex(r"T[$^\circ C$]")
486
487
488
x_vals = [0, 8, 38, 39]
@@ -785,8 +785,8 @@ Advanced Projects
785
786
def add_x_labels(self):
787
x_labels = [
788
- MathTex("\pi"), MathTex("2 \pi"),
789
- MathTex("3 \pi"), MathTex("4 \pi"),
+ MathTex(r"\pi"), MathTex(r"2 \pi"),
+ MathTex(r"3 \pi"), MathTex(r"4 \pi"),
790
]
791
792
for i in range(len(x_labels)):
manim/animation/fading.py
@@ -166,7 +166,7 @@ def construct(self):
166
dot = Dot(UP * 2 + LEFT)
167
self.add(dot)
168
tex = Tex(
169
- "FadeOut with ", "shift ", " or target\\_position", " and scale"
+ "FadeOut with ", "shift ", r" or target\_position", " and scale"
170
).scale(1)
171
animations = [
172
FadeOut(tex[0]),
manim/mobject/geometry/line.py
@@ -1068,7 +1068,7 @@ def construct(self):
1068
1069
angle = Angle(line1, line2, radius=0.4)
1070
1071
- value = DecimalNumber(angle.get_value(degrees=True), unit="^{\\circ}")
+ value = DecimalNumber(angle.get_value(degrees=True), unit=r"^{\circ}")
1072
value.next_to(angle, UR)
1073
1074
self.add(line1, line2, angle, value)
manim/mobject/matrix.py
@@ -15,8 +15,8 @@ def construct(self):
15
m2 = DecimalMatrix(
16
[[3.456, 2.122], [33.2244, 12.33]],
17
element_to_mobject_config={"num_decimal_places": 2},
18
- left_bracket="\\{",
19
- right_bracket="\\}")
+ left_bracket=r"\{",
+ right_bracket=r"\}")
20
m3 = MobjectMatrix(
21
[[Circle().scale(0.3), Square().scale(0.3)],
22
[MathTex("\\pi").scale(2), Star().scale(0.3)]],
@@ -294,7 +294,7 @@ def get_columns(self):
294
295
class GetColumnsExample(Scene):
296
def construct(self):
297
- m0 = Matrix([["\\pi", 3], [1, 5]])
+ m0 = Matrix([[r"\pi", 3], [1, 5]])
298
m0.add(SurroundingRectangle(m0.get_columns()[1]))
299
self.add(m0)
300
"""
manim/utils/docbuild/manim_directive.py
@@ -174,7 +174,7 @@ def run(self) -> list[nodes.Element]:
174
# Rendering is skipped if the tag skip-manim is present,
175
# or if we are making the pot-files
176
should_skip = (
177
- "skip-manim" in self.state.document.settings.env.app.builder.tags.tags
+ "skip-manim" in self.state.document.settings.env.app.builder.tags
178
or self.state.document.settings.env.app.builder.name == "gettext"
179
180
if should_skip:
0 commit comments