ValueError: could not broadcast input array from shape (1920,1072) into shape (1920,1080)
<p>How can I fix this problem with my arrays?</p>

<p>I want to show black and white stripes </p>

<pre><code>height = 1920
width = 1080
bitrange = 3
imgs = numpy.zeros((bitrange, height, width), dtype=bool)

for bits in range(0, bitrange):
    stripe_width = width// 2**(bits+1)
    binary = numpy.fromiter(GrayCode(bits+1).generate_gray(), dtype=numpy.int) % 2
    vector = numpy.repeat(binary, stripe_width)
    imgs[bits] = numpy.tile(vector, (height,1))
    window.show(imgs[bits]* 1.0)
</code></pre>

<p>So, the problem is when I run my program for bitrange 1, 2, 3 it still works.</p>

<p>But from bitrange 4 it does not work with this error message: <strong>could not broadcast input array from shape (1920,1072) into shape (1920,1080)</strong></p>

<p>Thanks.</p>