Adding a colorbar to anvil

I am trying to add a colorbar into anvil but I am not sure how. Here is a link for what a colorbar is: https://matplotlib.org/3.2.1/api/_as_gen/matplotlib.pyplot.colorbar.html
Here is my code that I am trying to implement into my web app:

A post was merged into an existing topic: Colorbar or Heatmap