FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[ENH]: "Road sign" boxstyle/annotation · Issue #24618 · matplotlib/matplotlib · GitHub

Repository navigation

[ENH]: "Road sign" boxstyle/annotation #24618

Closed

Description

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?

Activity

  1. anntzer commented on Dec 4, 2022

    Contributor

    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?

  2. oscargus commented on Dec 4, 2022

    MemberAuthor

    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).

  3. added
    Difficulty: Mediumhttps://matplotlib.org/devdocs/devel/contribute.html#good-first-issues
    🌱 Good first issueOpen a pull request against these issues if there are no active ones!
    on Dec 5, 2022
  4. oscargus commented on Dec 5, 2022

    MemberAuthor

    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.)

  5. timhoffm commented on Dec 5, 2022

    Member
  6. anntzer commented on Dec 5, 2022

    Contributor

    That's also a way to do it, but I'd rather go with the "generalize larrow/rarrow" route.

  7. Abitamim commented on Dec 12, 2022

    Contributor

    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.

  8. CharlieThornton33 commented on Apr 14, 2025

    Contributor

    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.

  9. timhoffm commented on Apr 16, 2025

    Member

    #24774 has stalled but is generally on a good way. You are welcome to take over.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Difficulty: Mediumhttps://matplotlib.org/devdocs/devel/contribute.html#good-first-issuesNew featuretopic: annotation🌱 Good first issueOpen a pull request against these issues if there are no active ones!

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions


      Back | FazBrowse Home | New Git URL