home / github / issues

Menu
  • Search all tables
  • GraphQL API

issues: 1510151748

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
1510151748 I_kwDOAMm_X85aAxZE 7401 Allow passing figure handle to FacetGrid 15239248 open 0     6 2022-12-24T17:06:40Z 2023-10-25T17:10:32Z   NONE      

Is your feature request related to a problem?

Sometimes i need to combine xarray Facet grids with other ax plots. It would be amazing if I could pass a created figure to the plot function. Event better a subfigure so that the possibilities are infinite!

Describe the solution you'd like

for example: ```python da = xr.tutorial.open_dataset("air_temperature")['air'] f = plt.figure() ( da [{'time':[1,2,4]}] .plot.contourf(col='time',fig = f) )

```

Describe alternatives you've considered

an alternative is to manually to all plots in a created figure, but this becomes cumbersome. I quickly checked the source code, and it does not seem very difficult to implement. mostly a modification to the get_axis function so that it accepts an already created figure. I managed to quickly make it work in seaborn (see image below)

Additional context

No response

{
    "url": "https://api.github.com/repos/pydata/xarray/issues/7401/reactions",
    "total_count": 3,
    "+1": 3,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
    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 151.881ms · About: xarray-datasette