### Bug summary When saving log scaled barplots as PDFs, the bars get saved as rectangles with infinite size. <img width="365" alt="Log_scale_barplot" src="https://github.com/matplotlib/matplotlib/assets/79926498/b19d3320-a328-42a6-8319-d9642293b221"> ### Code for reproduction ```Python import matplotlib.pyplot as plt import numpy as np categories = ['A', 'B', 'C', 'D', 'E'] values = [800, 1200, 2000, 3000, 5000] plt.bar(categories, values) plt.yscale('log') plt.savefig('Log_scale_barplot.pdf') ``` ### Actual outcome Rectangles with infinite size ### Expected outcome Rectangles size capped at axis ### Additional information _No response_ ### Operating system Linux, OS/X ### Matplotlib Version 3.8.4 ### Matplotlib Backend _No response_ ### Python version _No response_ ### Jupyter version _No response_ ### Installation None