Wolfram Research

Function Repository Resource:

DottedArrayPlot

Source Notebook

Plot an array of values, with dots at specified positions

Contributed by: Stephen Wolfram

ResourceFunction["DottedArrayPlot"][{{a1, a2,...},{i1, i2,...}}]

plots the values an, with dots at position in.

Details and Options

Used in A New Kind of Science e.g. on page 1068.

Examples

Basic Examples

Plot a sequence of bits with various positions indicated:

In[1]:=
ResourceFunction[
 "DottedArrayPlot"][{{1, 1, 0, 1, 0, 1, 1, 1}, {2, 4, 5}}]
Out[1]=

Scope

A 2D array:

In[2]:=
ResourceFunction[
 "DottedArrayPlot"][{{{1, 0, 0, 1, 1, 1, 1, 0}, {0, 1, 1, 1, 0, 0, 1, 1}, {1, 0, 0, 1, 1, 0, 0, 1}}, {{1, 4, 7}, {1, 2, 5}, {2, 6}}}]
Out[2]=

Requirements

Wolfram Language 11.3 (March 2018) or above

Resource History

License Information