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:
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