xxxxxxxxxx
import matplotlib.pyplot as plt, numpy as np
Canvas = np.zeros((50,50,1)) # Black Canvas 50x50 with 1 color_channel
# Canvas[25, 25] = 1.0 # Change center pixel to color White
Canvas[25, 0:50] = 1.0 # Draw Straight White Horizontal Line at y=25
plt.imshow(Canvas,cmap='gray'); plt.show()