ImageFile.Stoner__Image__imagefuncs__imshow

ImageFile.Stoner__Image__imagefuncs__imshow(figure='new', ax=None, title=None, title_args=None, cmap='gray', mask_alpha=None, mask_color=None, **kwargs)

Quickly plot of image.

Parameters:

im (ImargeArray,ImageFile) – Image data to be worked with.

Keyword Arguments:
  • figure (int, str or matplotlib.figure) – if int then use figure number given, if figure is ‘new’ then create a new figure, if None then use whatever default figure is available

  • ax (axes,None) – Matplotlib axes to user, defaults to None.

  • show_axis (bool) – If True, show the axis otherwise don’t (default)’

  • title (str,None,False) – Title for plot - defaults to False (no title). None will take the title from the filename if present

  • title_args (dict) – Arguments to pass to the title function to control formatting.

  • cmap (str,matplotlib.cmap) – Colour scheme for plot, defaults to gray

  • mask_alpha (float,None) – Alpha of mask to use

  • mask_color (matplotlib colour) – Colour of masked regons - defaults to red.

  • **kwargs – Other keywords are passed to imshow()

Any masked areas are set to NaN which stops them being plotted at all.