You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Manim v0.17.1中Square网格显示异常问题求助

Manim Community v0.17.1 网格显示异常问题求助

使用Manim Community v0.17.1时,遇到以下基础示例的异常行为:

代码示例

class SquareScene(Scene):
    def construct(self):
        kwargs = {"fill_opacity": 1, "stroke_color": WHITE}

        square1 = Square(5, color=RED, grid_xstep=1, grid_ystep=1, **kwargs)
        square2 = square1.copy().set(color=BLUE, **kwargs).shift(UP + RIGHT)

        self.add(square2, square1)

异常现象

  • square1未显示网格,原因不明
  • square2正常显示网格

补充发现

将square1的color=RED改为fill_color=RED后,square1的网格正常显示了——原来网格实际存在,但因为颜色为红色所以不可见。不过仍无法理解:为什么square2的网格颜色是白色?

内容的提问来源于stack exchange,提问作者paime

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.08 15:15:36