[Matplotlib-users] matplolib imshow contour/heatmap

2014-03-15 Thread sweep
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

Re: [Matplotlib-users] How to put the label above horizontal colorbar?

2014-03-15 Thread Arnaldo Russo
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,