import matplotlib.pyplot as plt
from photutils.psf_matching import CosineBellWindow

taper = CosineBellWindow(alpha=0.3)
data = taper((101, 101))
fig, ax = plt.subplots()
axim = ax.imshow(data, origin='lower')
fig.colorbar(axim)