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

Appearance settings

fix: dedupe boxplot ticks on shared axes#632

Closed
saschabuehrle wants to merge 1 commit into
Ultraplot:mainUltraplot/UltraPlot:mainfrom
saschabuehrle:fix/issue-628saschabuehrle/UltraPlot:fix/issue-628Copy head branch name to clipboard
Closed

fix: dedupe boxplot ticks on shared axes#632
saschabuehrle wants to merge 1 commit into
Ultraplot:mainUltraplot/UltraPlot:mainfrom
saschabuehrle:fix/issue-628saschabuehrle/UltraPlot:fix/issue-628Copy head branch name to clipboard

Conversation

@saschabuehrle

Copy link
Copy Markdown

Bug

Fixes #628 — with shared x-axes, repeated boxplot() calls can leave duplicated tick positions/labels (e.g. 0..9 rendered twice), which causes doubled/bold tick labels.

Fix

  • After the native boxplot call, deduplicate managed axis tick positions while preserving order.
  • Apply this only when manage_ticks is active, so explicit tick management still behaves as requested.

Tests

  • Added regression test: test_boxplot_shared_x_does_not_duplicate_ticks
  • Ran:
    • pytest ultraplot/tests/test_statistical_plotting.py -k boxplot_shared_x_does_not_duplicate_ticks

Happy to adjust if you prefer a different location for the dedupe logic.

Greetings, saschabuehrle

@cvanelteren

Copy link
Copy Markdown
Collaborator

Thanks! Closing in favor of #630

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.

Boxplots have duplicate xtick labels when enabling x axis sharing

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.