Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Animation doc markup cleanups. #9033

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
Aug 15, 2017

Conversation

anntzer
Copy link
Contributor

@anntzer anntzer commented Aug 14, 2017

PR Summary

PR Checklist

  • Has Pytest style unit tests
  • Code is PEP 8 compliant
  • New features are documented, with examples if plot related
  • Documentation is sphinx and numpydoc compliant
  • Added an entry to doc/users/next_whats_new/ if major new feature (follow instructions in README.rst there)
  • Documented in doc/api/api_changes.rst if API changed in a backward-incompatible way

@anntzer anntzer force-pushed the animation-cleanup branch from 731b401 to 5785aee Compare August 14, 2017 15:37
Copy link
Contributor

@dopplershift dopplershift left a comment

Choose a reason for hiding this comment

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

I saw a few minor issues that you may want to fix, but I'm also happy for this to go in as is since it's a nice clean up of what's there.

metadata: dict of string:string or None
movie utility. The default is ``None``, which passes the additional
arguments in the ``animation.extra_args`` rcParam.
metadata: Dict[str, str] or None
Copy link
Contributor

Choose a reason for hiding this comment

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

optional?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think dict of string:string benefits from being changed into Dict[str,str] but ... or None is so prevalent throughout the code base that such a change (if done) should be the object of another PR.

Copy link
Contributor

Choose a reason for hiding this comment

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

You changed the one above, so I wasn't sure if you wanted to be consistent.

frames per second in the movie. Defaults to None,
which will use the animation's specified interval to set
the frames per second.
frames per second in the movie. Defaults to None, which will use the
Copy link
Contributor

Choose a reason for hiding this comment

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

``None``

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

@@ -1313,15 +1311,15 @@ class TimedAnimation(Animation):

repeat_delay : number, optional
If the animation in repeated, adds a delay in milliseconds
before repeating the animation. Defaults to `None`.
before repeating the animation. Defaults to ``None``.
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove extra space after period?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I tend to prefer two spaces after a period (https://en.wikipedia.org/wiki/Sentence_spacing -- I know there are arguments both ways). I don't think it's worth changing the style throughout the docs, but at least locally it should be better to uniformize it (so here I settled towards two-spacing). Same reply applies to comments below.

Copy link
Contributor

Choose a reason for hiding this comment

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

Fair enough.


repeat : bool, optional
Controls whether the animation should repeat when the sequence
of frames is completed. Defaults to `True`.
of frames is completed. Defaults to ``True``.
Copy link
Contributor

Choose a reason for hiding this comment

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

Why add the extra space?

@@ -1402,15 +1399,15 @@ class ArtistAnimation(TimedAnimation):

repeat_delay : number, optional
If the animation in repeated, adds a delay in milliseconds
before repeating the animation. Defaults to `None`.
before repeating the animation. Defaults to ``None``.
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove extra space after period?


interval : number, optional
Delay between frames in milliseconds. Defaults to 200.

repeat_delay : number, optional
If the animation in repeated, adds a delay in milliseconds
before repeating the animation. Defaults to `None`.
before repeating the animation. Defaults to ``None``.
Copy link
Contributor

Choose a reason for hiding this comment

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

Extra space.


repeat : bool, optional
Controls whether the animation should repeat when the sequence
of frames is completed. Defaults to `True`.
of frames is completed. Defaults to ``True``.
Copy link
Contributor

Choose a reason for hiding this comment

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

Extra space.

@anntzer anntzer force-pushed the animation-cleanup branch from 5785aee to f5ee0bb Compare August 15, 2017 11:04
@anntzer anntzer force-pushed the animation-cleanup branch from f5ee0bb to cef5782 Compare August 15, 2017 11:05
@dopplershift
Copy link
Contributor

Waiting to see if we can get Travis green here...

@dopplershift dopplershift merged commit b19cd40 into matplotlib:master Aug 15, 2017
@QuLogic QuLogic added this to the 2.1 (next point release) milestone Aug 15, 2017
@anntzer anntzer deleted the animation-cleanup branch August 15, 2017 23:08
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.

3 participants