Skip to content

fix(test): move test_local_install legend back to right side#31

Merged
MDunitz merged 1 commit intomainfrom
fix/test-package-legend-right
Apr 29, 2026
Merged

fix(test): move test_local_install legend back to right side#31
MDunitz merged 1 commit intomainfrom
fix/test-package-legend-right

Conversation

@madsCodeBuddy
Copy link
Copy Markdown
Collaborator

Summary

One-line fix: change add_legend(p, position="above", ...)position="right" in tests/test_local_install.py.

This script is run by make test-package and produces test_stommel.html — the canonical embeddable demo of the package post-install. With the legend above the plot, the legend column compressed the plot vertically; moving it back to the right keeps it outside the plot area in a vertical column.

Files changed

  • tests/test_local_install.py (1 line)

Verified

  • black + flake8 clean
  • No other call sites of add_legend(..., position="above") in the repo

Replaces

Closed PR #29, which mistakenly added a separate docs/build_demo_boyd.py instead of fixing the existing demo. This is the actual fix.

The Stommel demo generated by 'make test-package' (test_stommel.html) had
its legend placed above the plot via add_legend(p, position='above'),
which compresses the plot vertically and pushes the title and toolbar
out of useful range for a legend that long. Restoring position='right'
keeps the legend outside the plot area in a vertical column where it
was previously.
@MDunitz MDunitz merged commit 4f317e0 into main Apr 29, 2026
4 checks passed
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