home / github / issues

Menu
  • Search all tables
  • GraphQL API

issues: 357970488

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
357970488 MDU6SXNzdWUzNTc5NzA0ODg= 2406 Achieving square aspect for Facetgrid heatmaps 22293319 closed 0     6 2018-09-07T08:31:30Z 2019-04-11T22:50:54Z 2019-04-11T22:50:54Z NONE      

```python import xarray as xr import numpy as np %matplotlib inline

array = xr.DataArray(np.random.rand(20,5,2,1), dims=['a', 'b', 'c', 'd']) array.plot(x='a', y='b', col='c') ```

Problem description

How can I force these heatmap cells into squares rather than rectangles? I'm aware that it is possible to pass kwargs through to Seaborn's FacetGrid, but setting square=True or subplot_kws={'square":True} both raise AttributeError: Unknown property square.

INSTALLED VERSIONS ------------------ commit: None python: 3.6.6.final.0 python-bits: 64 OS: Darwin OS-release: 16.7.0 machine: x86_64 processor: i386 byteorder: little LC_ALL: None LANG: en_GB.UTF-8 LOCALE: en_GB.UTF-8 xarray: 0.10.8 pandas: 0.23.4 numpy: 1.15.1 scipy: 1.1.0 netCDF4: None h5netcdf: None h5py: None Nio: None zarr: None bottleneck: 1.2.1 cyordereddict: None dask: 0.18.2 distributed: 1.22.1 matplotlib: 2.2.3 cartopy: None seaborn: 0.9.0 setuptools: 40.2.0 pip: 10.0.1 conda: 4.5.11 pytest: 3.7.3 IPython: 6.5.0 sphinx: 1.7.7
{
    "url": "https://api.github.com/repos/pydata/xarray/issues/2406/reactions",
    "total_count": 1,
    "+1": 1,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  completed 13221727 issue

Links from other tables

  • 0 rows from issues_id in issues_labels
  • 6 rows from issue in issue_comments
Powered by Datasette · Queries took 161.21ms · About: xarray-datasette