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

Catch warning thrown in Mollweide projection. #3282

Merged
merged 2 commits into from Aug 26, 2014

Conversation

jenshnielsen
Copy link
Member

Yet another pull request to silence another warning in the test suite.

A RuntimeWarning is thrown in the MollWeide grid tests since mpl tries to transform a point for tick calculation which is outside the allowed interval. This happens due to the code that expands the tick interval to not miss any ticks. The transform calculates np.arcsin(y/sqrt(2))
where y is larger that sqrt(2)

I also slightly improved the warnings message below to clarify that this is related to ticks only.

Also some PEP8 around the code that I changed.

jenshnielsen and others added 2 commits July 22, 2014 11:54
This happens when plotting tries to expand
the interval for ticks beyond the defined region and do np.arcsin(y/sqrt(2))
where y is larger that sqrt(2) since the original limites matches the allowed
interval.

And Improve warnings message to clarify that this is related to ticks only.

Also some PEP8 around the code that I changed.
@tacaswell tacaswell added this to the v1.4.x milestone Aug 18, 2014
tacaswell added a commit that referenced this pull request Aug 26, 2014
Catch warning thrown in Mollweide projection.
@tacaswell tacaswell merged commit 9661a02 into matplotlib:master Aug 26, 2014
tacaswell added a commit that referenced this pull request Aug 26, 2014
Catch warning thrown in Mollweide projection.
@tacaswell
Copy link
Member

cherry-picked to 1.4.x as 3c9eba3

@jenshnielsen jenshnielsen deleted the mollweide_warning branch August 28, 2014 12:00
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