issues: 634212258
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 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
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 numberstring = ['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 OutputProblem DescriptionCurrently, 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. VersionsOutput of <tt>xr.show_versions()</tt>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 |