home / github / issues

Menu
  • Search all tables
  • GraphQL API

issues: 548483156

This data as json

id node_id number title user state locked assignee milestone comments created_at updated_at closed_at author_association active_lock_reason draft pull_request body reactions performed_via_github_app state_reason repo type
548483156 MDU6SXNzdWU1NDg0ODMxNTY= 3687 imshow RGB plot overlaps map borders when using projection 29065166 closed 0     5 2020-01-11T21:36:03Z 2020-01-18T10:55:51Z 2020-01-18T10:55:51Z NONE      

xarry version: '0.14.0' matplotlib version: '3.1.1'

When I create an RGB plot using ds.plot.imshow with a procection, the plot overlaps the map borders:

import cartopy.crs as ccrs
import xarray
import matplotlib.pyplot as plt

ds = xr.load_dataset(...)

ax = plt.subplot(projection=ccrs.Robinson())
(ds.isel(time=[0, 4, 8])).plot.imshow(robust=True, ax=ax, transform=ccrs.PlateCarree())

When using ds.plot.imshow with a single layer, the plot looks as expected:

import cartopy.crs as ccrs
import xarray
import matplotlib.pyplot as plt

ds = xr.load_dataset(...)

ax = plt.subplot(projection=ccrs.Robinson())
(ds.isel(time=0)).plot.imshow(robust=True, ax=ax, transform=ccrs.PlateCarree(), add_colorbar=False)

{
    "url": "https://api.github.com/repos/pydata/xarray/issues/3687/reactions",
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  completed 13221727 issue

Links from other tables

  • 2 rows from issues_id in issues_labels
  • 5 rows from issue in issue_comments
Powered by Datasette · Queries took 0.602ms · About: xarray-datasette