#!/usr/bin/env python
from pylab import *
from math import log

y=[1,0.5,0.25,0.5,1,2,4,8,16,32]
x=range(1,len(y)+1)

subplot(121)
title('with log=True\n(not much sense,\nheight depends on ylim()[0])')
bar(x,y,log=True,align='center')
xlim(x[0]-0.5,x[-1]+0.5)
ylim(1e-3,64)

ly=map(lambda x:log(x,2), y)
subplot(122)
title('manually log-scaled data\n(as I like it,\nheight shows data value)')
bar(x,ly,log=False,align='center')
xlim(x[0]-0.5,x[-1]+0.5)
ylim(-10,6)

show()

