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

2014-03-20 Thread Chao YUE
Dear Arnaldo, sorry for the delay in reply. Thanks a lot. This solves my problem well. Cheers, Chao On Sun, Mar 16, 2014 at 7:27 AM, Arnaldo Russo arnaldoru...@gmail.comwrote: Dear Chao, You could try this, import matplotlib import matplotlib.pyplot as plt # create a color bar with:

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

2014-03-16 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