Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[Bug]: Log scaled barplots in PDF result in infinite rectangles #28175

Copy link
Copy link
Open
@eabila

Description

@eabila
Issue body actions

Bug summary

When saving log scaled barplots as PDFs, the bars get saved as rectangles with infinite size.
Log_scale_barplot

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.