html_url,issue_url,id,node_id,user,created_at,updated_at,author_association,body,reactions,performed_via_github_app,issue https://github.com/pydata/xarray/issues/781#issuecomment-256929821,https://api.github.com/repos/pydata/xarray/issues/781,256929821,MDEyOklzc3VlQ29tbWVudDI1NjkyOTgyMQ==,2443309,2016-10-28T14:09:58Z,2016-10-28T14:09:58Z,MEMBER,"What got us in trouble before was the approach we took to infering the interval breaks. If you're willing to work through the logic related to 1d and 2d non-uniform coordinates, we can address this. ","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,138045063 https://github.com/pydata/xarray/issues/781#issuecomment-191595449,https://api.github.com/repos/pydata/xarray/issues/781,191595449,MDEyOklzc3VlQ29tbWVudDE5MTU5NTQ0OQ==,2443309,2016-03-03T05:58:12Z,2016-03-03T05:58:12Z,MEMBER,"A little example of where I'm seeing this go wrong (I think). Here I'm plotting the terrain height variable across the Arctic region, the north pole is somewhere in the middle of the plot. As you can see, there is an odd streak across the plot when using the xarray pcolormesh. ``` Python import cartopy.crs as ccrs # projection class class Rasm(ccrs.Projection): def __init__(self): proj4_params = {'R': 6371200.0, 'lat_0': 90.0, 'lat_1': 90, 'lat_2': 90, 'lon_0': -114.0+360, 'proj': 'lcc', 'units': 'm', 'x_0': 9469302.950316086, 'y_0': 6201952.603370549} super(Rasm, self).__init__(proj4_params) @property def boundary(self): coords = ((self.x_limits[0], self.y_limits[0]),(self.x_limits[1], self.y_limits[0]), (self.x_limits[1], self.y_limits[1]),(self.x_limits[0], self.y_limits[1]), (self.x_limits[0], self.y_limits[0])) return ccrs.sgeom.Polygon(coords).exterior @property def threshold(self): return 100000.0 @property def x_limits(self): return (0, 16423961.103252266) @property def y_limits(self): return (0, 12228062.194885937) plt.figure() ax = plt.subplot(projection=Rasm()) elev.plot.pcolormesh('longitude', 'latitude', transform=ccrs.PlateCarree(), vmin=0, vmax=2500, cmap='terrain', add_colorbar=False) ax.set_title('Using xarray plotting') plt.figure() ax = plt.subplot(projection=Rasm()) ax.pcolormesh(elev.longitude, elev.latitude, elev.to_masked_array(), transform=ccrs.PlateCarree(), cmap='terrain', vmin=0, vmax=2500) ax.set_title('Using pyplot and Cartopy') ``` ![xarray](https://cloud.githubusercontent.com/assets/2443309/13485962/aacf8120-e0c1-11e5-934d-43d7e41855c1.png) ![cartopy](https://cloud.githubusercontent.com/assets/2443309/13485964/af12f4ec-e0c1-11e5-9641-bf5c4d702c73.png) ","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,138045063 https://github.com/pydata/xarray/issues/781#issuecomment-191549075,https://api.github.com/repos/pydata/xarray/issues/781,191549075,MDEyOklzc3VlQ29tbWVudDE5MTU0OTA3NQ==,2443309,2016-03-03T02:36:55Z,2016-03-03T02:36:55Z,MEMBER,"@shoyer - I'm not sure that problem exists when plotting with carotpy. I'd have to check though. Yes, my coordinates are quite unevenly spaced (Equal area projection over the north pole). My suggestion is that we let `cartopy` handle locating the coordinates when applicable. ","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,138045063