def imview(*args, **kwargs):
 if ('figure' not in kwargs):
  f = plt.figure()
 else:
  f = kwargs['figure']
 new_ax = matplotlib.axes.Axes(f, [0, 0, 1, 1], xticks=[], yticks=[], frame_on=False)
 f.delaxes(f.gca())
 f.add_axes(new_ax)
 if ((len(args) < 5) and ('interpolation' not in kwargs)):
  kwargs['interpolation'] = 'nearest'
 plt.imshow(*args, **kwargs)

def imview ( * args , ** kwargs ) : if ( 'figure' not in kwargs ) : f = plt . figure ( ) else : f = kwargs [ 'figure' ] new_ax = matplotlib . axes . Axes ( f , [ 0 , 0 , 1 , 1 ] , xticks = [ ] , yticks = [ ] , frame_on = False ) f . delaxes ( f . gca ( ) ) f . add_axes ( new_ax ) if ( ( len ( args ) < 5 ) and ( 'interpolation' not in kwargs ) ) : kwargs [ 'interpolation' ] = 'nearest' plt . imshow ( * args , ** kwargs )
a matplotlib-based image viewer command .