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

Skip to content

Catch warning thrown in Mollweide projection.#3282

Merged
tacaswell merged 2 commits intomatplotlib:masterfrom
jenshnielsen:mollweide_warning
Aug 26, 2014
Merged

Catch warning thrown in Mollweide projection.#3282
tacaswell merged 2 commits intomatplotlib:masterfrom
jenshnielsen:mollweide_warning

Conversation

@jenshnielsen
Copy link
Copy Markdown
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
Copy Markdown
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.

3 participants