import matplotlib.pyplot as plt
import numpy as np

x = np.zeros((3, 3), dtype=np.uint8)
x[1, 1] = 1

fig, axs = plt.subplots(2,2, constrained_layout=True)

ax = axs[0,0]
ax.imshow(x, cmap='gray')
ax.set_title('RelationshipSign = -1\nMonochrome1')
for row in range(3):
    for col in range(3):
        text = ax.text(row, col, 1-x[row, col], ha="center", va="center", color="r")

ax = axs[0,1]
ax.imshow(1 - x, cmap='gray')
ax.set_title('RelationshipSign = -1\nMonochrome2')
for row in range(3):
    for col in range(3):
        text = ax.text(row, col, 1-x[row, col], ha="center", va="center", color="r")

ax = axs[1,0]
ax.imshow(1 - x, cmap='gray')
ax.set_title('RelationshipSign = 1\nMonochrome1')
for row in range(3):
    for col in range(3):
        text = ax.text(row, col, x[row, col], ha="center", va="center", color="r")

ax = axs[1,1]
ax.imshow(x, cmap='gray')
ax.set_title('RelationshipSign = 1\nMonochrome2')
for row in range(3):
    for col in range(3):
        text = ax.text(row, col, x[row, col], ha="center", va="center", color="r")

for ax in axs.flat:
    ax.set_xticks([])
    ax.set_yticks([])

plt.show()