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

Fix adding map to list in addcyclic #441

Merged
merged 1 commit into from
Nov 7, 2018
Merged

Fix adding map to list in addcyclic #441

merged 1 commit into from
Nov 7, 2018

Conversation

xylar
Copy link
Contributor

@xylar xylar commented Nov 7, 2018

This corrects an earlier fix to support python 2 and 3

closes #440

This corrects an earlier fix to support python 2 and 3
@xylar
Copy link
Contributor Author

xylar commented Nov 7, 2018

With this fix, the follow test (same as in #440) works correctly for me:

#!/usr/bin/env python

from mpl_toolkits.basemap import addcyclic
import numpy

lon = numpy.arange(0., 360., 0.5)
lat = numpy.arange(-90., 90.5, 0.5)

Lon, Lat = numpy.meshgrid(lon, lat)

field = numpy.sin(numpy.deg2rad(Lat))

fieldCyc, latCyc, lonCyc = addcyclic(field, Lat, Lon)

@WeatherGod WeatherGod merged commit 099fe7e into matplotlib:master Nov 7, 2018
@WeatherGod
Copy link
Member

Looks like I'll have to put out a v1.2.1 release soonish.

@xylar xylar deleted the fix_addcyclic branch November 7, 2018 20:10
@xylar
Copy link
Contributor Author

xylar commented Nov 7, 2018

Thanks, @WeatherGod

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.

addcyclic giving error on map + list
2 participants