How to plot an image from a series of bits inPython?
You could use at least these two options:  


PIL library:

from PIL import Image

img = Image.new('1', (width, height)) #width and height of the original image
data=[int(x) for x in x]  #x being your array
img.putdata(data)
img.save('my_handwritten_number.png')
img.show()



You can see here an example with the whole process, from reading a hand written image file through converting it to an array and displaying it again to an image:



import numpy as np 

np_img=np_img.reshape(28900, )

width = np.sqrt(len(np_img))

from PIL import Image

img = Image.new('1', (int(width), int(width)))
data=[int(np_img) for np_img in np_img]
img.putdata(data)
img.save('my_hand_written_digit.png')
img.show()


getting as a result this reconstructed digit:



nevertheless, I see your array is a 1D array whose square root is not an integer, so it seems it does not come from an square image; you need to be able to convert it to a matrix (via the Image.new method). 
If I do it with your array, this is what I get:




another option you have is with Keras:

import tensorflow.keras as keras 

keras.preprocessing.image.array_to_img(np_img.reshape(170, 170, 1), 
data_format=None, scale=True, dtype=None)