Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Geo projections getting clobbered by 2to3 when used when python3 #1555

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

Conversation

joferkington
Copy link
Contributor

projections/geo.py uses long as a variable name in many places. This is replaced with int by 2to3, which leads to problems (e.g. foo = int * bar instead of foo = long * bar).

Steps to reproduce:

  1. Install matplotlib with python3.x
  2. Run examples/api/custom_projection_example.py
  3. Mouse over the plot (or anything else that will call an inverse geo projection)

@efiring
Copy link
Member

efiring commented Dec 4, 2012

Looks good to me. "lon" and "lat" is much nicer than "long" and "lat" anyway.

@dmcdougall
Copy link
Member

Woah. Nice catch, @joferkington! This PR looks fine to me too. I'll merge this tomorrow. Thanks again.

@pelson
Copy link
Member

pelson commented Dec 4, 2012

👍

@mdboom
Copy link
Member

mdboom commented Dec 4, 2012

Thanks. This should be cherry-picked for v1.2.x.

@dmcdougall
Copy link
Member

Merging.

@mdboom Sure thing.

dmcdougall added a commit that referenced this pull request Dec 4, 2012
Geo projections getting clobbered by 2to3 when used when python3
@dmcdougall dmcdougall merged commit e5b0042 into matplotlib:master Dec 4, 2012
@dmcdougall
Copy link
Member

Cherry-pickled: 40d28e0

@joferkington
Copy link
Contributor Author

Thanks a bunch!

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.

5 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.