Skip to main content

Command Palette

Search for a command to run...

WCCCxGenuary2026_RecursiveCollage

Recursive, Grids and Mashing Up

Updated
1 min read
WCCCxGenuary2026_RecursiveCollage

GridCollageReduction

For this week's Creative Code challenge by @sableRaph & Prompt 26 of Genuary 2026: “Recursive Grids “, GridCollageReduction is coded in Python with Recursive Grids and collaging each output in an image.

Poetry

Grids Recursively Created
Each plot, a presence of the past
An element that isn’t moving too fast
As a reminisce of the grid that it is related
To maintain the legacy of class

Images

Code

Python

import numpy as np
import matplotlib.pyplot as plt


def GridPlot(numX):

    C = np.random.randint(low=0, high=2, size=(numX, 11))

    d = C.tolist()

    #paletteUse = ['hot','Oranges','bwr_r','Blues','RdBu','coolwarm','Dark2']



    a = d
    plt.imshow(a, cmap='hot', interpolation='nearest')
    plt.axis('off') # Hide all axe
    plt.show()

    if numX == 0 or numX == 1:
        return 1
    else:
        return GridPlot(numX-1)

GridPlot(6)
import numpy as np
import matplotlib.pyplot as plt
import random as rd


def GridPlot(numX):

    C = np.random.randint(low=0, high=2, size=(numX, 11))

    d = C.tolist()

    paletteUse = ['hot','Oranges','bwr_r','Blues','RdBu','coolwarm','Dark2']
    rd.shuffle(paletteUse)


    a = d
    plt.imshow(a, cmap=paletteUse[numX], interpolation='nearest')
    plt.axis('off') # Hide all axe
    plt.show()

    if numX == 0 or numX == 1:
        return 1
    else:
        return GridPlot(numX-1)

GridPlot(6)