Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Open
Labels
Description
Bug summary
When saving log scaled barplots as PDFs, the bars get saved as rectangles with infinite size.
Code for reproduction
importmatplotlib.pyplotaspltimportnumpyasnpcategories= ['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