def imshow(<EOL>self,<EOL>data=None,<EOL>save=False,<EOL>ax=None,<EOL>interpolation="<STR_LIT:none>",<EOL>extra_title=None,<EOL>show_resonances="<STR_LIT>",<EOL>set_extent=True,<EOL>equalized=False,<EOL>rmin=None,<EOL>rmax=None,<EOL>savepath="<STR_LIT:.>",<EOL>**kwargs,<EOL>):
if data is None:<EOL><INDENT>data = self.img<EOL><DEDENT>if self.resonance_axis is not None:<EOL><INDENT>logger.debug("<STR_LIT>")<EOL>self.resonance_axis.remove()<EOL><DEDENT>if equalized:<EOL><INDENT>data = np.nan_to_num(data)<EOL>data[data < <NUM_LIT:0>] = <NUM_LIT:0><EOL>data = exposure.equalize_hist(data)<EOL><DEDENT>self.plotted_data = data<EOL>extent_val = self.extent if set_extent else None<EOL>min_, max_ = self.plot_limits<EOL>self.min_ = min_<EOL>self.max_ = max_<EOL>if ax is None:<EOL><INDENT>if not _SEABORN_INSTALLED:<EOL><INDENT>fig, ax = plt.subplots(figsize=calc_4_3(<NUM_LIT:8>))<EOL><DEDENT>else:<EOL><INDENT>fig, ax = plt.subplots()<EOL><DEDENT><DEDENT>else:<EOL><INDENT>fig = ax.get_figure()<EOL><DEDENT>with quantity_support():<EOL><INDENT>im = ax.imshow(<EOL>data,<EOL>extent=extent_val,<EOL>cmap="<STR_LIT>",<EOL>vmin=min_,<EOL>vmax=max_,<EOL>interpolation=interpolation,<EOL>origin="<STR_LIT>",<EOL>aspect="<STR_LIT>",<EOL>**kwargs,<EOL>)<EOL><DEDENT>if any([rmin is not None, rmax is not None]):<EOL><INDENT>ax.set_ylim(rmin, rmax)<EOL><DEDENT>self.mpl_im = im<EOL>ax.set_xlabel("<STR_LIT>")<EOL>ax.set_ylabel("<STR_LIT>")<EOL>ax.ticklabel_format(useOffset=False)<EOL>title = self.plot_title<EOL>if extra_title:<EOL><INDENT>title += "<STR_LIT:U+002CU+0020>" + extra_title<EOL><DEDENT>ax.set_title(title, fontsize=<NUM_LIT:12>)<EOL>if show_resonances:<EOL><INDENT>self.set_resonance_axis(ax, show_resonances, rmin, rmax)<EOL><DEDENT>if save:<EOL><INDENT>savename = self.plotfname<EOL>if extra_title:<EOL><INDENT>savename = savename[:-<NUM_LIT:4>] + "<STR_LIT:_>" + extra_title + "<STR_LIT>"<EOL><DEDENT>p = Path(savename)<EOL>fullpath = Path(savepath) / p.name<EOL>fig.savefig(fullpath, dpi=<NUM_LIT>)<EOL>logging.info("<STR_LIT>", fullpath)<EOL><DEDENT>self.im = im<EOL>return im<EOL>
Powerful default display.

        show_resonances can be True, a list, 'all', or 'some'