log scale plot for histograms


I have a histogram with orders of magnitude difference in counts of each bin. I want to use a log yscale in plotting it. But there are bins with 0 counts. What’s the best way to plot it? I’ve read the log_bar.py example which uses bar() for plotting. It works when I pull it into a script. But I’d appreciate any pointers to better ways.