X Tutup
Skip to content

Allow creating annotation arrows w/ default props.#6799

Merged
tacaswell merged 1 commit intomatplotlib:masterfrom
anntzer:annotation-default-arrow
Jul 26, 2016
Merged

Allow creating annotation arrows w/ default props.#6799
tacaswell merged 1 commit intomatplotlib:masterfrom
anntzer:annotation-default-arrow

Conversation

@anntzer
Copy link
Copy Markdown
Contributor

@anntzer anntzer commented Jul 19, 2016

annotate(..., arrowprops={}) now uses an arrow with the default arrow
properties, rather than no arrow. Note that this matches the docstring
of annotate, which indicates that "arrowprops, if not None, is a
dictionary of line properties (see matplotlib.lines.Line2D) for the
arrow that connects annotation to the point."

Comes down to checking for None instead of falsiness of arrowprops.

@tacaswell tacaswell added this to the 2.1 (next point release) milestone Jul 20, 2016
@tacaswell
Copy link
Copy Markdown
Member

👍 to merging this change.

Although it is not a documented API change, I think this should get an api_changes entry noting that the code has been brought inline with the documentation.

@anntzer anntzer force-pushed the annotation-default-arrow branch 2 times, most recently from c839c26 to 2948af6 Compare July 20, 2016 01:22
`annotate(..., arrowprops={})` now uses an arrow with the default arrow
properties, rather than no arrow.  Note that this matches the docstring
of `annotate`, which indicates that "arrowprops, if not None, is a
dictionary of line properties (see matplotlib.lines.Line2D) for the
arrow that connects annotation to the point."

Comes down to checking for `None` instead of falsiness of `arrowprops`.
@anntzer anntzer force-pushed the annotation-default-arrow branch from 2948af6 to 5dd8bcb Compare July 20, 2016 01:23
@anntzer
Copy link
Copy Markdown
Contributor Author

anntzer commented Jul 20, 2016

done

@tacaswell tacaswell merged commit 0fadaaf into matplotlib:master Jul 26, 2016
@anntzer anntzer deleted the annotation-default-arrow branch July 26, 2016 04:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

X Tutup