Hi, im trying to create a heatmap/colourmap/contour style plot similar to
http://www.idlcoyote.com/cg_tips/outcontourbar.png but I cant seem to get it
working correctly. The code takes a number of parameters on the command line
because it is passed by an external PHP script. Essentially its a list
Dear Chao,
You could try this,
import matplotlib
import matplotlib.pyplot as plt
# create a color bar with:
sm = plt.cm.ScalarMappable(cmap=plt.get_cmap('Reds'))
sm.set_array(range(10))
# create an horizontal colorbar and put the ticks on the top.
# in your case, you could plot colorbar on top,