home / github / issues

Menu
  • Search all tables
  • GraphQL API

issues: 109226686

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
109226686 MDExOlB1bGxSZXF1ZXN0NDY0ODMzNzg= 598 Fix colormap for facet grid plots 2443309 closed 0   1307323 1 2015-10-01T04:15:04Z 2015-10-21T07:08:00Z 2015-10-01T17:10:31Z MEMBER   0 pydata/xarray/pulls/598

Fixes #592

Added test to check that all subplots in facet grid have same data range and colormap.

This fixes two issues present in the existing code:

1) colormap was being selected for each subplot 2) range was being selected for each subplot and colorbar was the result of only the last subplot

Some sample code:

Python data = (np.random.random(size=(20, 25, 12)) + np.linspace(-3, 3, 12)) # range is ~ -3 to 4 da = xray.DataArray(data, dims=['x', 'y', 'time'], name='data') fg = da.plot.pcolormesh(col='time', col_wrap=4)

previously yielded this plot:

and now yields this plot:

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

Links from other tables

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