![Why bmp image displayed as wrong color with plt.imshow of matplotlib on IPython-notebook? - Stack Overflow Why bmp image displayed as wrong color with plt.imshow of matplotlib on IPython-notebook? - Stack Overflow](https://i.stack.imgur.com/xM3ol.png)
Why bmp image displayed as wrong color with plt.imshow of matplotlib on IPython-notebook? - Stack Overflow
你好,我想生成白色背景,黑色字体的图像,请问代码如何进行修改呢?我目前修改了背景的代码为white:img = Image.new("RGB", (self.width, self.height), "white"),字体为黑:draw.text((0, 0), char, (0, 0, 0), font=font)。但是生成的图像有问题,请问代码要怎么修改呢·
![Why bmp image displayed as wrong color with plt.imshow of matplotlib on IPython-notebook? - Stack Overflow Why bmp image displayed as wrong color with plt.imshow of matplotlib on IPython-notebook? - Stack Overflow](https://i.stack.imgur.com/L28RZ.png)
Why bmp image displayed as wrong color with plt.imshow of matplotlib on IPython-notebook? - Stack Overflow
![Why bmp image displayed as wrong color with plt.imshow of matplotlib on IPython-notebook? - Stack Overflow Why bmp image displayed as wrong color with plt.imshow of matplotlib on IPython-notebook? - Stack Overflow](https://i.stack.imgur.com/xD9uC.png)