html_url,issue_url,id,node_id,user,created_at,updated_at,author_association,body,reactions,performed_via_github_app,issue https://github.com/pydata/xarray/issues/4114#issuecomment-1465302631,https://api.github.com/repos/pydata/xarray/issues/4114,1465302631,IC_kwDOAMm_X85XVr5n,43316012,2023-03-12T21:20:35Z,2023-03-12T21:20:35Z,COLLABORATOR,"I assume this has been resolved then? If not, feel free to reopen.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,627805952 https://github.com/pydata/xarray/issues/4114#issuecomment-1103009167,https://api.github.com/repos/pydata/xarray/issues/4114,1103009167,IC_kwDOAMm_X85BvpWP,15079414,2022-04-19T19:25:44Z,2022-04-19T20:37:34Z,CONTRIBUTOR,"Thanks @max-sixty. ~~I think~~ it was with `%matplotlib widget` (ipympl) that I got the behavior I described. With `%matplotlib inline` (default inline backend) the figures get closed[^1] at the end of a cell, so the two plot commands would have to be in the same cell to get an overlay, which is fine. But with ipympl, this is not the case so you have to be more careful.
Example ![image](https://user-images.githubusercontent.com/15079414/164080131-07a8d5d1-86b5-44d4-811f-ab6f19b1bd0f.png)
[^1]: You can disable this behavior with `%config InlineBackend.close_figures=False` and get an overlay from plot commands in separate cells, but then you have to manually refresh the plot it seems.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,627805952 https://github.com/pydata/xarray/issues/4114#issuecomment-1102869557,https://api.github.com/repos/pydata/xarray/issues/4114,1102869557,IC_kwDOAMm_X85BvHQ1,5635139,2022-04-19T16:47:07Z,2022-04-19T16:47:07Z,MEMBER," ","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,627805952 https://github.com/pydata/xarray/issues/4114#issuecomment-1102853303,https://api.github.com/repos/pydata/xarray/issues/4114,1102853303,IC_kwDOAMm_X85BvDS3,5635139,2022-04-19T16:29:22Z,2022-04-19T16:29:22Z,MEMBER,"Sorry this didn't get a response @zmoon, particularly given your contributions to xarray and the broader community. That said, I think I get this already, unless I'm misunderstanding? ![Uploading image.png…]() ","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,627805952 https://github.com/pydata/xarray/issues/4114#issuecomment-1102492670,https://api.github.com/repos/pydata/xarray/issues/4114,1102492670,IC_kwDOAMm_X85BtrP-,26384082,2022-04-19T10:43:49Z,2022-04-19T10:43:49Z,NONE,"In order to maintain a list of currently relevant issues, we mark issues as stale after a period of inactivity If this issue remains relevant, please comment here or remove the `stale` label; otherwise it will be marked as closed automatically ","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,627805952