Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Update docs/source/examples/3d.rst

kolibril13e87361ac79d8
diff --git a/docs/source/examples/3d.rst b/docs/source/examples/3d.rst
index a8a97ad77..e6614c576 100644
--- a/docs/source/examples/3d.rst
+++ b/docs/source/examples/3d.rst
@@ -8,17 +8,14 @@
class Example3DNo1(ThreeDScene):
def construct(self):
axes = ThreeDAxes()
-
sphere = ParametricSurface(
lambda u, v: np.array([
1.5 * np.cos(u) * np.cos(v),
1.5 * np.cos(u) * np.sin(v),
1.5 * np.sin(u)
- ]), v_min=0, v_max=TAU, u_min=-PI / 2, u_max=PI / 2, checkerboard_colors=[RED_D, RED_E],
- resolution=(15, 32))
-
+ ]), v_min=0, v_max=TAU, u_min=-PI / 2, u_max=PI / 2,
+ checkerboard_colors=[RED_D, RED_E], resolution=(15, 32)
+ )
self.set_camera_orientation(phi=75 * DEGREES, theta=30 * DEGREES)
-
self.add(axes, sphere)
-