-
-
Notifications
You must be signed in to change notification settings - Fork 7.8k
[ENH]: "Road sign" boxstyle/annotation #24618
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
Comments
I would just make them variants over larrow/rarrow/darrow (https://matplotlib.org/devdocs/tutorials/text/annotations.html#annotating-with-boxed-text), by adding some parameters to the constructors, e.g. head_length, head_width, if possible keeping them consistent with the similarly named parameters in the corresponding arrowstyles? |
That may indeed be a good idea which removes the naming issue if nothing else. A bit more tedious to use, but would for sure enable it (an example where this is obtained can be a nice addition as well, as IMO it looks better). |
Marking as good first issue, but medium as there is a bit of argument handling to be done, including updating documentation and add an example. Bordering easy though. (Go with the suggestion in the comment.) |
Isn't this more like making https://matplotlib.org/devdocs/tutorials/text/annotations.html#defining-custom-box-styles a first-class style? |
That's also a way to do it, but I'd rather go with the "generalize larrow/rarrow" route. |
Hi, I am a first time contributer to open-source. I went slightly on my own direction when creating this feature. Please let me know if it is all right, or if I should pursue an option with more flexibility in setting arrow head dimensions. |
Hi. I'm a first-time open source contributor and I'd like to know if this issue's still open? There seem to have been a few PRs attempting an implementation, but none of them seem to have been active in the past year and nothing seems to have been merged. |
#24774 has stalled but is generally on a good way. You are welcome to take over. |
Problem
Not sure what the proper name is, but it may be useful to have boxstyles as below (red part, black is the object if encloses):

Proposed solution
Add boxstyles/annotiation styles as above.
As there already are arrow styles, these should be called something else.
Also, one may consider what
pad
should mean here. Probably the left alternative where the "arrow side" is not padded (as opposed to the right alternative). Should one be possible to provide the angle or should it always be 45 degrees?Is there a use for a double-arrowed version?
The text was updated successfully, but these errors were encountered: