The code below shall be fine.
from manim import *
class NameOfAnimation(Scene):
def construct(self):
plane = NumberPlane(
x_range=[-7, 7, 1],
y_range=[-4, 4, 1],
background_line_style={
"stroke_color": WHITE,
"stroke_width": 2,
"stroke_opacity": 0.3
}
)
plane.add_coordinates()
self.add(plane)
box = Rectangle(
stroke_color=GREEN_C,
stroke_opacity=0.7,
fill_color=RED_B,
fill_opacity=0.5,
height=1,
width=1
)
self.add(box)
self.play(box.animate.shift(RIGHT * 2), run_time=2)
self.play(box.animate.shift(UP * 3), run_time=2)
self.play(box.animate.shift(DOWN * 5 + LEFT * 5), run_time=2)
self.play(box.animate.shift(UP * 1.5 + RIGHT * 1), run_time=2)
But still the moving square does not show in the video.
My steps are:
Firstly run the code by clicking the triangle on the top right hand side.
Then the manim sideview (the green circle).
Finally the button of "Render a New Scene" in the frame of manimsideview on the right.
Could anyone suggest the actions I shall do to solve the problem? Thank you.

The code below shall be fine.
from manim import *
class NameOfAnimation(Scene):
def construct(self):
But still the moving square does not show in the video.
My steps are:
Firstly run the code by clicking the triangle on the top right hand side.
Then the manim sideview (the green circle).
Finally the button of "Render a New Scene" in the frame of manimsideview on the right.
Could anyone suggest the actions I shall do to solve the problem? Thank you.