Skip to content

Fix adding map to list in addcyclic - #441

Merged
WeatherGod merged 1 commit into
matplotlib:masterfrom
xylar:fix_addcyclic
Nov 7, 2018
Merged

WeatherGod merged 1 commit into
matplotlib:masterfrom
xylar:fix_addcyclic

Conversation

@xylar

@xylar xylar commented Nov 7, 2018

Copy link
Copy Markdown
Contributor

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

xylar commented Nov 7, 2018

Copy link
Copy Markdown
Contributor Author

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
Copy Markdown
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

xylar commented Nov 7, 2018

Copy link
Copy Markdown
Contributor Author

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