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

Boxplot vertical x-axis labels are tough to read #452

Open
asizemore opened this issue Jan 3, 2023 · 5 comments
Open

Boxplot vertical x-axis labels are tough to read #452

asizemore opened this issue Jan 3, 2023 · 5 comments
Assignees

Comments

@asizemore
Copy link
Member

Screen Shot 2023-01-03 at 4 23 14 PM

I'm guessing plotly is making the decision about spacing and when to put text horizontal, 45 deg, and vertical? Is it possible to prevent it from going all the way vertical? Horizontal and 45 deg is fine.

@moontrip moontrip self-assigned this Jan 3, 2023
@moontrip
Copy link
Contributor

moontrip commented Jan 3, 2023

@asizemore IIRC, there is an option for making the angle of the tick label. But at the same time, it may cause another issue: e.g., the width of the plot will become narrower when implementing the angle.

@moontrip
Copy link
Contributor

moontrip commented Jan 3, 2023

@asizemore One question. Do you want to have the angled label for non-faceted plot (i.e., without facet variable) as well or only for faceted plot?

@asizemore
Copy link
Member Author

Thanks @moontrip ! To clarify, the current behavior is that the labels are in one of three positions: horizontal, angled, or vertical. Based on the number of labels, size of labels, and/or size of plot, the labels get rotated into one of these three positions. I think the current behavior does a good job of deciding when the labels should be angled. My proposal is just to remove that vertical option. So then the labels still go either horizontal or 45deg angle as they do now, but they just don't ever get rotated into the vertical position.

@moontrip
Copy link
Contributor

moontrip commented Jan 4, 2023

@asizemore Thank you for your clarification 👍 The current behavior is automatically decided by plotly, so perhaps we may need to set a condition like the number of labels to set the 45 deg angle, and/or reducing the number of characters for the ellipsis, etc.

@dmfalke dmfalke transferred this issue from VEuPathDB/EdaNewIssues Feb 16, 2023
@dmfalke dmfalke transferred this issue from VEuPathDB/web-eda Feb 16, 2023
@asizemore
Copy link
Member Author

I think it's worth putting this issue in the Backlog until we revisit faceting more completely.

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

No branches or pull requests

2 participants