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 634222648,MDU6SXNzdWU2MzQyMjI2NDg=,4129,FacetGrid colorbar horizontal orientation ,31694629,closed,0,,,4,2020-06-08T06:23:53Z,2020-06-09T07:41:22Z,2020-06-09T07:41:21Z,NONE,,,," When using Facetgrid with color orientation as horizontal, the map stretches and looks weird. The expected outcome should create extra space for the colorbar. #### MCVE Code Sample ```python import xarray as xr airtemps = xr.tutorial.open_dataset('air_temperature') air = airtemps['air'] t = air.isel(time=slice(0, 365 * 4, 250)) g_simple = t.plot(x='lon', y='lat', col='time', col_wrap=3, cbar_kwargs={'orientation': 'horizontal'}) ``` Output: ![Figure 2020-06-08 114452](https://user-images.githubusercontent.com/31694629/83998615-9e001380-a97e-11ea-9fe3-e309eb3008b8.png) #### Expected Output ![Figure 2020-06-08 114436](https://user-images.githubusercontent.com/31694629/83998319-f08d0000-a97d-11ea-84cd-ca8cec1db90a.png) #### Problem Description The current behavior of the changes the aspect ratio of the subplots. The addition of this feather will enable a better-looking plot and can be directly used for publishing. #### Versions
Output of xr.show_versions()
","{""url"": ""https://api.github.com/repos/pydata/xarray/issues/4129/reactions"", ""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,completed,13221727,issue 634212258,MDU6SXNzdWU2MzQyMTIyNTg=,4128,Add text in FacetGrid subplots,31694629,closed,0,,,2,2020-06-08T06:13:23Z,2020-06-08T15:55:01Z,2020-06-08T15:55:00Z,NONE,,,," Adding subplots numbers in the FacetGrid subplots. This will help in the easy generation of scientific publication quality figures. #### MCVE Code Sample ```python import xarray as xr airtemps = xr.tutorial.open_dataset('air_temperature') air = airtemps['air'] t = air.isel(time=slice(0, 365 * 4, 250)) g_simple = t.plot(x='lon', y='lat', col='time', col_wrap=3) #adding sub plot number string = ['a','b','c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l'] for i, ax in enumerate(g_simple.axes.flatten()): ax.text(0.85, 0.85,'(' + string[i] +')',transform=ax.transAxes, bbox=dict(boxstyle=""square"", fc=""w"", ec=""k"")) ``` #### Expected Output ![Figure 2020-06-08 113841](https://user-images.githubusercontent.com/31694629/83997716-a2c3c800-a97c-11ea-9458-58a46c70f848.png) #### Problem Description Currently, there is no argument that can enable the subplot numbers in the FacetGrid subplot. In the case of scientific publications, subplots need to be numbered. The addition of this feature will enable the easy generation of good quality figures. #### Versions
Output of xr.show_versions() INSTALLED VERSIONS ------------------ commit: None python: 3.7.7 (default, May 6 2020, 11:45:54) [MSC v.1916 64 bit (AMD64)] python-bits: 64 OS: Windows OS-release: 10 machine: AMD64 processor: Intel64 Family 6 Model 166 Stepping 0, GenuineIntel byteorder: little LC_ALL: None LANG: en LOCALE: None.None libhdf5: 1.10.4 libnetcdf: 4.7.3 xarray: 0.15.1 pandas: 1.0.3 numpy: 1.18.1 scipy: 1.4.1 netCDF4: 1.5.3 pydap: None h5netcdf: None h5py: None Nio: None zarr: None cftime: 1.1.2 nc_time_axis: None PseudoNetCDF: None rasterio: None cfgrib: None iris: None bottleneck: None dask: 2.16.0 distributed: 2.16.0 matplotlib: 3.1.3 cartopy: 0.17.0 seaborn: 0.10.1 numbagg: None setuptools: 46.2.0.post20200511 pip: 20.0.2 conda: 4.8.3 pytest: None IPython: 7.13.0 sphinx: 3.0.3
","{""url"": ""https://api.github.com/repos/pydata/xarray/issues/4128/reactions"", ""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,completed,13221727,issue