Allow tuning the shape of {L,R,D}Arrow tips.#31198
Merged
QuLogic merged 3 commits intomatplotlib:mainfrom Mar 27, 2026
Merged
Conversation
f0a6cf3 to
d65b419
Compare
timhoffm
reviewed
Feb 26, 2026
| The new *head_width* and *head_angle* parameters to | ||
| `.BoxStyle.LArrow`, `.BoxStyle.RArrow` and `.BoxStyle.DArrow` allow for adjustment | ||
| of the size and aspect ratio of the arrow heads used. | ||
|
|
Member
There was a problem hiding this comment.
Suggested change
| To give a consistent appearance across all parameter values, the | |
| default head position (where the head starts relative to text) is | |
| slightly changed compared to the previous hard-coded position. |
timhoffm
approved these changes
Feb 26, 2026
Member
timhoffm
left a comment
There was a problem hiding this comment.
We could have a more in-depth example on how the parameters work. The what's new entry is the only visualization and it's not discoverable from the Arrow docs.
But that can also come later.
Contributor
Author
|
thanks, fixed. I'll skip on the extra docs :) |
QuLogic
reviewed
Mar 25, 2026
QuLogic
reviewed
Mar 25, 2026
This was referenced Mar 26, 2026
Member
|
You'll need to rebase to get docs to run properly (also CI has been fixed.) |
[Only the tutorial patch was kept by the PR committer.]
[Only part of the patch was kept by the PR committer.]
Contributor
Author
|
rebased |
QuLogic
approved these changes
Mar 27, 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
Implements the "road sign" arrows requested at #24618 (closes #24618). The implementation is the one suggested at #29998 (comment) (with some tweaks, especially in the obtuse reverse arrow case), so that the shape varies continuously with the parameters. To acknowledge the original PR authors I've squashed their commits and kept them as respective authors of a docs commit (extracted from #24744) and a test commit (directly taken from #29998, although the baseline image is actually different).
@QuLogic's interactive test script is reproduced below for convenience:
PR checklist