You are reading an old version of the documentation (v2.0.2). For the latest version see https://matplotlib.org/stable/ ''' ==================== Customized colorbars ==================== This example shows how to build colorbars without an attached mappable. ''' import matplotlib.pyplot as plt import matplotlib as mpl # Make a figure and axes with dimensions as desired. fig = plt.figure(figsize=(8