def display_rgb(rgb, title=None):
 import matplotlib.pyplot as plt
 plt.imshow(rgb, interpolation=u'nearest', origin=u'lower')
 if title:
  plt.title(title)
 plt.show()
 return plt

def display_rgb ( rgb , title = None ) : import matplotlib . pyplot as plt plt . imshow ( rgb , interpolation = u'nearest' , origin = u'lower' ) if title : plt . title ( title ) plt . show ( ) return plt
display an rgb image using matplotlib .