daleroberts / itermplot

An awesome iTerm2 backend for Matplotlib, so you can plot directly in your terminal.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

support pyplot.imshow

keosu opened this issue · comments

I want to use imshow to display a raw rgb picture, it seems that not support .

Hi there, just wanted to add that this capability works fine for me. E.g. the following random rgb image:

import matplotlib.pyplot as plt
import numpy as np

plt.imshow(np.random.random_integers(0, 255, (100,100,3)))
plt.show()

Maybe could you elaborate on the issue you're having?

aah, so you just need to call plt.show() after you call plt.imshow(...). Thank you!