Skip to content

Mep12 text labels and annotations - #8211

Merged
dstansby merged 4 commits into
matplotlib:masterfrom
NelleV:MEP12_text_labels_and_annotations
Mar 8, 2017
Merged

dstansby merged 4 commits into
matplotlib:masterfrom
NelleV:MEP12_text_labels_and_annotations

Conversation

@NelleV

@NelleV NelleV commented Mar 7, 2017

Copy link
Copy Markdown
Member

Here are some more migrations of examples to compatible sphinx-gallery docstring.

refs #7206

@NelleV NelleV changed the title Mep12 text labels and annotations [MRG] Mep12 text labels and annotations Mar 7, 2017

@QuLogic QuLogic left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

One typo.

Controlling style of text and labels using a dictionary
=======================================================


Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Extra line.



This example shows how to share parameters across many text objects and labels
by creating a dictionnaries of option passed across several functions.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

dictionnaries of option -> dictionary of options

@NelleV

NelleV commented Mar 7, 2017

Copy link
Copy Markdown
Member Author

Thanks for the review! I fixed the comments.

@QuLogic QuLogic left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Still one typo ;)

=======================================================

This example shows how to share parameters across many text objects and labels
by creating a dictionnary of options passed across several functions.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

dictionnary ->dictionary

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

fixed again :)

@QuLogic QuLogic changed the title [MRG] Mep12 text labels and annotations [MRG+1] Mep12 text labels and annotations Mar 7, 2017
@tacaswell tacaswell added this to the 2.0.1 (next bug fix release) milestone Mar 7, 2017

Matplotlib can wrap text automatically, but if it's too long, the text will be
displayed slightly outside of the boundaries of the axis anyways.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

A quick grep suggests that the common style in the codebase is an empty line after the closing quotes, not before.

Also applies below.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

We have common style code for documenting examples? And here I thought we didn't have documentation on examples :p

@NelleV

NelleV commented Mar 7, 2017

Copy link
Copy Markdown
Member Author

I've added/removed blank lines.

@dstansby dstansby left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Will merge if the doc build on travis passes 👍

@dstansby dstansby self-assigned this Mar 7, 2017
@NelleV

NelleV commented Mar 8, 2017

Copy link
Copy Markdown
Member Author

So… The documentation passes. The rest fails because it can't download freetype.

@dstansby
dstansby merged commit e88957d into matplotlib:master Mar 8, 2017
@dstansby dstansby removed their assignment Apr 10, 2017
dstansby added a commit that referenced this pull request May 1, 2017
@dstansby

dstansby commented May 1, 2017

Copy link
Copy Markdown
Member

Backported to 2.0.x via. 605e57b

@QuLogic QuLogic changed the title [MRG+1] Mep12 text labels and annotations Mep12 text labels and annotations May 1, 2017
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.

5 participants