issue_comments: 191595449
This data as json
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-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 classclass Rasm(ccrs.Projection):
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') ```
|
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
138045063 |