RulePlot

RulePlot[sys]

generates a plot representing the rule for the computational system sys.

RulePlot[sys,init,t]

generates a plot of the evolution of the system sys from initial condition init for t steps.

RulePlot[sys,evol]

generates a plot of the evolution evol assuming it is derived from a system of the form sys.

Details and Options

  • Possible computational systems sys include:
  • CellularAutomaton[spec]cellular automaton
    TuringMachine[spec]Turing machine
    SubstitutionSystem[spec]substitution system
    BooleanFunction[spec]Boolean function
  • RulePlot works with 1D and 2D systems.
  • Options include:
  • AppearanceAutomaticoverall appearance
    ColorRulesAutomaticrules for determining colors from values
    FrameTruewhether to draw a frame around rule cases
    FrameStyleAutomaticthe style to use for a frame
    MeshAutomaticwhether to draw a mesh
    MeshStyleAutomaticthe style to use for a mesh
    PlotLegendsNonelegends to include
    PlotMarkersAutomaticmarkers for Turing machines, etc.
    PlotTheme$PlotThemeoverall theme for the rule plot
    SpacingsAutomatichorizontal and vertical spacings
  • Possible appearance elements include:
  • "Contiguous"no space between states
    "Stacked"small space between states
    "Arrow"draw an arrow between states
    "Squares"squares for cells
    "Bricks"bricks for cells
    "Hexagons"hexagons for cells
    "Simplified"simplified rule cases
    "Short"show shortened list of rules
  • Possible plot legend forms include:
  • "Icon"use an icon as the legend
    "Text"use text as the legend
    exprarbitrary plot legend
  • In the form RulePlot[sys,evol], specific rules are typically ignored; only the implicit or explicit specification of number of colors, states, etc. is used.

Examples

open allclose all

Basic Examples  (5)

Show the rule icon for elementary cellular automaton rule 30:

In[1]:=
Click for copyable input
Out[1]=

Generate evolution for 10 steps:

In[1]:=
Click for copyable input
Out[1]=

Include the rule icon:

In[2]:=
Click for copyable input
Out[2]=

Turing machine evolution:

In[1]:=
Click for copyable input
Out[1]=

Generate the evolution of a Turing machine:

In[1]:=
Click for copyable input
Out[1]=

Use RulePlot to display the history, using information on the rule to determine the form:

In[2]:=
Click for copyable input
Out[2]=

Show the rule icon for a substitution system:

In[1]:=
Click for copyable input
Out[1]=

Scope  (36)

Options  (18)

Applications  (2)

Properties & Relations  (2)

See Also

ArrayPlot  CellularAutomaton  TuringMachine  SubstitutionSystem  BooleanFunction  BooleanTable

Introduced in 2016
(11.0)