Skip to content

Commit

Permalink
copy coords before modifying (#2160)
Browse files Browse the repository at this point in the history
* copy coords before modifying

* add one line to changelog
  • Loading branch information
tspeng authored Nov 15, 2022
1 parent 6e8c8ab commit 8be27b8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
* Fix issue in dim generation when default dims are present in user inputed dims ([2138](https://github.com/arviz-devs/arviz/pull/2138))
* Save InferenceData level attrs to netcdf and zarr ([2131](https://github.com/arviz-devs/arviz/pull/2131))
* Update tests and docs for updated example data ([2137](https://github.com/arviz-devs/arviz/pull/2137))
* Copy coords before modifying in ppcplot ([2160](https://github.com/arviz-devs/arviz/pull/2160))

### Deprecation
* Removed `fill_last`, `contour` and `plot_kwargs` arguments from `plot_pair` function ([2085](https://github.com/arviz-devs/arviz/pull/2085))
Expand Down
2 changes: 2 additions & 0 deletions arviz/plots/ppcplot.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,8 @@ def plot_ppc(

if coords is None:
coords = {}
else:
coords = coords.copy()

if labeller is None:
labeller = BaseLabeller()
Expand Down

0 comments on commit 8be27b8

Please sign in to comment.