Skip to content

Conversation

@yvonnefroehlich
Copy link
Member

@yvonnefroehlich yvonnefroehlich commented Dec 20, 2025

Description of proposed changes

This PR splits the parameter bar_width into two parameters bar_width and bar_offset to make the codes more Pythonic.
Related to #4279 (comment). Extends #4279

Preview:

Guidelines

Slash Commands

You can write slash commands (/command) in the first line of a comment to perform
specific operations. Supported slash command is:

  • /format: automatically format and lint the code

@yvonnefroehlich yvonnefroehlich added this to the 0.18.0 milestone Dec 20, 2025
@yvonnefroehlich yvonnefroehlich self-assigned this Dec 20, 2025
@yvonnefroehlich yvonnefroehlich added the enhancement Improving an existing feature label Dec 20, 2025
@yvonnefroehlich yvonnefroehlich marked this pull request as draft December 20, 2025 19:35
bar_width=f"{binwidth / 2}+o-{binwidth / 4}",
bar_width=binwidth / 2,
# Offset the bars to align each bar with the left limit of the corresponding bin
bar_offset=binwidth / 4,
Copy link
Member

Choose a reason for hiding this comment

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

negative offset.

Suggested change
bar_offset=binwidth / 4,
bar_offset=-binwidth / 4,

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

Labels

enhancement Improving an existing feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants