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
@seisman
Copy link
Member

seisman commented Dec 26, 2025

Looks good to me, except for one minor comment above. Are there any changes you'd like to make?

@yvonnefroehlich yvonnefroehlich marked this pull request as ready for review December 26, 2025 19:55
@yvonnefroehlich
Copy link
Member Author

yvonnefroehlich commented Dec 26, 2025

Looks good to me, except for one minor comment above. Are there any changes you'd like to make?

I think the image comparison for the new test was missing. I tried to create the baseline image and pushed the DVC file to GitHub and the PNG file to DagsHub. But it looks like something did not work correctly. I remember that there should be a GitHub comment showing a summary of the modified or newly added baseline images. But this is currently not the case.

return fig


@pytest.mark.mpl_image_compare(filename="test_histogram_barwidth_baroffset.png")
Copy link
Member

Choose a reason for hiding this comment

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

This is the default file name, so no need to specify it explicitly.

Suggested change
@pytest.mark.mpl_image_compare(filename="test_histogram_barwidth_baroffset.png")
@pytest.mark.mpl_image_compare

Copy link
Member

Choose a reason for hiding this comment

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

Actually I feel we don't need to add this test, because there is no complex code logic for these two parameters.

@seisman
Copy link
Member

seisman commented Dec 27, 2025

Did you run dvc push?

@seisman seisman merged commit 4d5fb26 into main Dec 27, 2025
19 of 23 checks passed
@seisman seisman deleted the split-histogram-bar_width branch December 27, 2025 11:23
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