Open
Description
Bug summary
When saving log scaled barplots as PDFs, the bars get saved as rectangles with infinite size.
Code for reproduction
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