def imgshow(plt, w, dim_input, scale=False, colorImg=False, convertImgs=False, tile_spacing=(1,1)):
    if convertImgs:
        channelSize = w.shape[0]/3
        w = tuple([w[channelSize*i:channelSize*(i+1)] for i in range(3)])
    plt.axis('Off')
    pil_image = mat_to_img(w, dim_input, scale, colorImg, tile_spacing)
    plt.imshow(pil_image, cmap=pylab.gray(), origin='upper')
    return pil_image
dataset/ETHPy150Open dpkingma/nips14-ssl/anglepy/paramgraphics.py/imgshow/original