Fix matplotlib 3.3 deprecation warning
"""This module provides various helper functions."""
-from __future__ import division, print_function
import logging
import sys
import os
@@ -454,7 +453,7 @@ def plot_image(image, ax=None, scale='linear', origin='lower',
ax.set_ylabel(ylabel)
ax.set_title(title)
if show_colorbar:
- cbar = plt.colorbar(cax, ax=ax, norm=norm, label=clabel)
+ cbar = plt.colorbar(cax, ax=ax, label=clabel)
cbar.ax.yaxis.set_tick_params(tick1On=False, tick2On=False)
cbar.ax.minorticks_off()
return ax
