In default, the bar plot in matplotlib sets the bottom value as zero. If you adopt log scale for the vertical axis of your bar plot and save your figure as a pdf file, the file contains vector objects extending toward -inf out of the plot area.
In order to solve this problem, you should set the bottom value by using the option bottom in the bar plot.