diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4381bb8..c72ed8a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -20,11 +20,11 @@ repos: exclude: poetry.lock args: [--autofix] - repo: https://github.com/psf/black - rev: 23.7.0 + rev: 23.9.1 hooks: - id: black - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.0.287 + rev: v0.0.288 hooks: - id: ruff args: [--fix] diff --git a/docs/source/reference/examples.md b/docs/source/reference/examples.md index 4f8bdc2..d8dbcac 100644 --- a/docs/source/reference/examples.md +++ b/docs/source/reference/examples.md @@ -132,22 +132,22 @@ directly write the `construct` method in the body of `MovingCameraSlide`. from manim import * from manim_slides import Slide - - + + class MovingCameraSlide(Slide, MovingCameraScene): pass - + class SubclassExample(MovingCameraSlide): def construct(self): self.camera.frame.save_state() - + ax = Axes(x_range=[-1, 10], y_range=[-1, 10]) graph = ax.plot(lambda x: np.sin(x), color=WHITE, x_range=[0, 3 * PI]) - + dot_1 = Dot(ax.i2gp(graph.t_min, graph)) dot_2 = Dot(ax.i2gp(graph.t_max, graph)) self.add(ax, graph, dot_1, dot_2) - + self.play(self.camera.frame.animate.scale(0.5).move_to(dot_1)) self.next_slide() self.play(self.camera.frame.animate.move_to(dot_2))