Skip to content

Conversation

@N9sha18
Copy link

@N9sha18 N9sha18 commented Jan 19, 2026

Fixed a ValueError when plotting log-scale histograms with non-positive data. Added a check to clamp minimum values

Relates to #12527


return 10 ** np.linspace(minimum, maximum, log_bin_count)
minimum = log10(float(minimum))
maximum = log10(float(maximum))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You still have to return something

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@N9sha18 Can you verify that the tests still pass locally?

Copy link
Contributor

@jonathan-eq jonathan-eq left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this work?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants