Skip to content
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

PEP8 fixes on textpath.py #1375

Merged
merged 1 commit into from Oct 14, 2012
Merged

PEP8 fixes on textpath.py #1375

merged 1 commit into from Oct 14, 2012

Conversation

NelleV
Copy link
Member

@NelleV NelleV commented Oct 13, 2012

PEP8 fixes on the textpath module.

Thanks,
N

@@ -478,13 +484,13 @@ def _revalidate_path(self):

"""
if self._invalid or \
Copy link
Member

Choose a reason for hiding this comment

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

Trailing backslash.

@NelleV
Copy link
Member Author

NelleV commented Oct 13, 2012

On this file, I also have those warnings:

textpath.py:253: W806 local variable 'glyph' is assigned to but never used
textpath.py:301: W806 local variable 'fontsize' is assigned to but never used
textpath.py:378: W806 local variable 'glyph0' is assigned to but never used

@@ -113,7 +113,8 @@ def get_text_width_height_descent(self, s, prop, ismath):

def get_text_path(self, prop, s, ismath=False, usetex=False):
"""
convert text *s* to path (a tuple of vertices and codes for matplotlib.math.Path).
convert text *s* to path (a tuple of vertices and codes for
matplotlib.math.Path).
Copy link
Member

Choose a reason for hiding this comment

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

Can we slip in a quick fix to this docstring: 'matplotlib.math.Path' --> 'matplotlib.path.Path'

Copy link
Member Author

Choose a reason for hiding this comment

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

Good catch :)

@efiring
Copy link
Member

efiring commented Oct 14, 2012

@NelleV Perhaps it would make sense to consolidate all of the imports at the top of the file, and organize them with standard library first, then external libraries (numpy), then mpl stuff.

@NelleV
Copy link
Member Author

NelleV commented Oct 14, 2012

It's done.

efiring added a commit that referenced this pull request Oct 14, 2012
@efiring efiring merged commit 880061d into matplotlib:master Oct 14, 2012
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.

None yet

4 participants