Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify box width API #110

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

etfrogers
Copy link
Contributor

@etfrogers etfrogers commented Apr 5, 2025

This is my attempt to use the generate_data macro from the color updates to simplify the box functions, by moving box width from a separate function into an option.

CHANGED_OUTPUTS=example2_2.png,variable_color.png,box_and_whisker.png,variable_palette.png

@etfrogers
Copy link
Contributor Author

The failures in CI are the same as on my machine, but I think that's expected, as I have changed those examples

Copy link
Owner

@SiegeLord SiegeLord left a comment

Choose a reason for hiding this comment

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

This looks good thanks. For the CI, I added instructions in https://github.com/SiegeLord/RustGnuplot/blob/master/CONTRIBUTING.md about how to indicate intended example changes.

@@ -10,14 +10,22 @@ fn example(c: Common)

fg.axes2d()
.set_title("Box and whisker", &[])
.box_and_whisker_set_width(
.box_and_whisker(
Copy link
Owner

@SiegeLord SiegeLord Apr 6, 2025

Choose a reason for hiding this comment

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

This looks like a bad merge. With this reverted, this example's output should go back to being unchanged.

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