daleroberts / itermplot

An awesome iTerm2 backend for Matplotlib, so you can plot directly in your terminal.
1.49k stars 51 forks source link

support pyplot.imshow #36

Open keosu opened 5 years ago

keosu commented 5 years ago

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

jmmanley commented 5 years ago

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?

cipri-tom commented 5 years ago

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