'How do you change the fontsize of a matplotlib color bar?

Does anyone know how to increase the font size of the "color bar" in the following code to match "downforce and "drag"?

Thanks in advance

plt.contourf(y_q2s, alphas, CDS, 40, cmap="Reds")

plt.colorbar(label="Colour bar", ticks=[0.006, 0.008, 0.010, 0.012, 0.014, 0.016])

lab = plt.contour(y_q2s, alphas, CLS, [0.99], colors="k")
plt.clabel(lab, fmt="optimum")


plt.xlabel("drag", fontsize=17)
plt.ylabel("down force",  fontsize=17)


plt.plot(out.x[0], out.x[1], "r*", ms=20)

enter image description here



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source