在Mathematica中显示Cellular Automaton规则图标的图形

问题描述 投票:0回答:1

我在Mathematica 9工作,我试图显示简单规则图标的图形(0-255)

这是我从WolframMathWorld获得的代码:

Show[Graphics[ElementaryCARules[30, {-2, 21}, 1.3]],
 AspectRatio -> Automatic, PlotRange -> All, ImageSize -> 450]

我尝试了它的变化,但总是得到一个粉红色的方块。

我查看了有关Cellular Automata的所有Mathematica文档,以及访问WolframAlpha并查看代码。

有帮助吗?

wolfram-mathematica
1个回答
0
投票

通过“简单规则图标的图形”,你的意思是这个

RulePlot[CellularAutomaton[30]]

enter image description here

© www.soinside.com 2019 - 2024. All rights reserved.