use get_limits in plot_matplotlib_hist.py