Skip to content

Clarify Annotation arrowprops docs #21743

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

Merged
merged 1 commit into from
Nov 30, 2021
Merged

Conversation

timhoffm
Copy link
Member

Closes #21733.

@timhoffm timhoffm added this to the v3.5-doc milestone Nov 24, 2021
@timhoffm timhoffm force-pushed the doc-arrowstyle branch 2 times, most recently from 0d209c7 to bb747df Compare November 24, 2021 22:13
``'arrowstyle'`` are:

============ =============================================
Name Attrs
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you drop this table on purpose?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. The table is incomplete: Not all styles are listed, not all parameters to the styles are listed. I think it's excessive to try and replicate all this information. Instead I hope that the sentence "Valid keys are the following ~matplotlib.patches.FancyArrowPatch parameters:" is enough context to it's subsequent table, which also lists arrowstyle. The FancyArrowPatch docs lists all styles and related parameters in detail.

positions *xy* and *xytext*. Defaults to None, i.e. no arrow is
drawn.

For historical reasons there are two different ways of usage, that
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
For historical reasons there are two different ways of usage, that
For historical reasons, there are two different usages that

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure that's what I want to say. IMHO there is only one usage, namely specifying the type of arrows, but there are two ways to do it. I was considering using "two different APIs" but thought that is too technical.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe:

Suggested change
For historical reasons there are two different ways of usage, that
For historical reasons there are two different ways to specify arrows, "simple" and "fancy":

and maybe drop the next clause?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Followed @jklymak suggestion.

@QuLogic QuLogic merged commit 71d52b6 into matplotlib:main Nov 30, 2021
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull request Nov 30, 2021
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull request Nov 30, 2021
QuLogic added a commit that referenced this pull request Nov 30, 2021
…743-on-v3.5.x

Backport PR #21743 on branch v3.5.x (Clarify Annotation arrowprops docs)
QuLogic added a commit that referenced this pull request Nov 30, 2021
…743-on-v3.5.0-doc

Backport PR #21743 on branch v3.5.0-doc (Clarify Annotation arrowprops docs)
@timhoffm timhoffm deleted the doc-arrowstyle branch November 30, 2021 08:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Possible bug on arrows in annotation
4 participants