Skip to content

Navigation Menu

Sign in
Appearance settings

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

Sign up
Appearance settings

include boxmode as valid attr #2396

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

Merged
cpsievert merged 2 commits into plotly:master from oliver-gray:patch/boxmode_layout_attr
Dec 16, 2024
Merged

include boxmode as valid attr #2396

cpsievert merged 2 commits into plotly:master from oliver-gray:patch/boxmode_layout_attr
Dec 16, 2024

Conversation

Copy link
Contributor

@oliver-gray oliver-gray commented Oct 18, 2024

Fix for #2376 and #994.
Simply adds boxmode as a valid attribute option in the attrs_name_check function of utils.R.

Warning no longer appears for boxmode option.

Tests run without error or warning.

@cpsievert @KasperSkytte

KasperSkytte and khusmann reacted with thumbs up emoji
Copy link
Contributor Author

@cpsievert @KasperSkytte
Please could this change be reviewed and included?
It is a real pain to have this unnecessary warning appearing all the time.

Copy link
Collaborator

Yes, sorry, would you mind adding a NEWS.md item as well? Thanks!

Copy link
Contributor Author

Thanks! I've added this to the development version section of the News.md file. Hopefully that's as expected.

@cpsievert cpsievert merged commit aa619dc into plotly:master Dec 16, 2024
Copy link

bklingen commented Dec 16, 2024
edited
Loading

Thank you! Does this also avoid the warning that is send for the related boxgroupgap option for layout, and, similarly, boxgap for non-grouped boxplots? This is also an issue with barplots (type='bar'), where bargroupgap also trigger an unwarranted warning.

This is also mentioned #1956 and #2406 .

Reproducible example for simple boxplots and grouped barplots shown below:

library(plotly)
fig <- plot_ly(ggplot2::diamonds, x = ~cut, y = ~price, type = "box")
fig <- fig %>% layout(boxgap = 0.8)
fig
library(plotly)
library(dplyr)
fig <- plot_ly(ggplot2::diamonds %>% count(cut, clarity), x = ~cut, y = ~n, color = ~clarity, type='bar')
fig %>% layout(bargroupgap = 0.5)

Copy link
Collaborator

No, do you want to submit a PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /