{{ message }}
Improve legend loc and bbox_to_anchor documentation (#26620) - #31422
Merged
Merged
Conversation
timhoffm
reviewed
Mar 30, 2026
Co-authored-by: Tim Hoffmann <2836374+timhoffm@users.noreply.github.com>
Co-authored-by: Tim Hoffmann <2836374+timhoffm@users.noreply.github.com>
Contributor
Author
timhoffm
approved these changes
Mar 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

PR summary
Fixes #26620 — Improves the
locandbbox_to_anchorparameter documentation in the legend module.Why is this change necessary? The current
locdocumentation uses three separate paragraphs to describe legend positions, which is verbose and harder to scan. Thebbox_to_anchordocs don't clearly state it's an advanced option or link to relevant guides.What problem does it solve? Makes legend positioning easier to understand at a glance by adding a visual ASCII grid of all 9 positions, and clarifies the relationship between
locandbbox_to_anchor.What is the reasoning for this implementation? Follows the suggestions in [Doc]: Improve legend loc and bbox_to_anchor documentation #26620 by maintainer @timhoffm.
Changes
loc: Replaced three text paragraphs with a concise explanation and an ASCII visual grid showing all 9 legend positions. Clarified that positions are within a bounding box configurable viabbox_to_anchor.bbox_to_anchor: Clarified this is an advanced option for free placement. Added cross-references toFigure.legendfor outside placement and to the:ref:legend_guide``.AI Disclosure
I used Claude (Anthropic) for researching the issue and drafting the documentation text. The changes were reviewed and verified by me.
PR checklist