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-compliance on axes.py (patch 4 / 4) #1564

Merged
merged 1 commit into from Dec 6, 2012
Merged

PEP8-compliance on axes.py (patch 4 / 4) #1564

merged 1 commit into from Dec 6, 2012

Conversation

NelleV
Copy link
Member

@NelleV NelleV commented Dec 5, 2012

Here is the last patch on the pep8 compliance of the axes.py module.

Cheers,
N

if marker is None:
marker = 's'
if markersize is None:
markersize = 10
Copy link
Member

Choose a reason for hiding this comment

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

Hmm, magic numbers like this are probably dealt with a better way. Not suggesting it is fixed in this PR, just thought I would point it out.

@dmcdougall
Copy link
Member

+1

@@ -8152,19 +8159,20 @@ def hist(self, x, bins=10, range=None, normed=False, weights=None,
# We will handle the normed kwarg within mpl until we
# get to the point of requiring numpy >= 1.5.
hist_kwargs = dict(range=bin_range)
if np.__version__ < "1.3": # version 1.1 and 1.2
if np.__version__ < "1.3": # version 1.1 and 1.2
Copy link
Member

Choose a reason for hiding this comment

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

For another PR: The numpy minimum version for mpl 1.2 is 1.4, so we can remove this.

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 working on a PR to remove deprecated stuff from this module; There's also something that was deprecated in 2010. I'm guessing that could also be removed (it was in 0.99).

@pelson
Copy link
Member

pelson commented Dec 6, 2012

👍

pelson added a commit that referenced this pull request Dec 6, 2012
PEP8-compliance on axes.py (patch 4 / 4)
@pelson pelson merged commit dfe98aa into matplotlib:master Dec 6, 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

3 participants