I would like to plot just the colorbar for a heatmap. Here is a MWE:
import seaborn as sns
import io
import matplotlib.pyplot as plt
import numpy as np
A = np.random.rand(100,100)
g = sns.heatmap(A)
plt.show()
How can I plot just its colorbar and not the heatmap itself?