0

I want to make this colorbar using python.

colorbar from NASA OCEAN COLOR

I got some code to make the colorbar which is not as good as the colorbar attached. Could you please help me to make such nice colorbar?`

cmap = [(0.0,0.0,0.0)] + [(cm.jet(i)) for i in range(1,256)] 
cmap = mpl.colors.ListedColormap(cmap)
img = plt.imshow(data, cmap=cmap),` 
martineau
  • 112,593
  • 23
  • 157
  • 280
  • 1
    See [Range values to pseudocolor](https://stackoverflow.com/questions/10901085/range-values-to-pseudocolor) and [Calculate RGB value for a range of values to create heat map](https://stackoverflow.com/questions/20792445/calculate-rgb-value-for-a-range-of-values-to-create-heat-map). – martineau Aug 31 '21 at 16:15

0 Answers0