How to plot mnist of kaggle data?

whenever i try to plot mnist dataset it plot tilt… why? 28 * 28 pixel I’m reshape


here my code link
https://drive.google.com/file/d/1qH4rKO3LbgB4L1lMqHBBr4NmTXurDV2B/view?usp=sharing