logaritmic color bar function to be used while plotting degree distribution of networks