Previously, the matplotlib transforms involving xy coordinates could end using old values if disc parameters were changed without also calling update_transform. Now, the transforms are automatically updated whenever any disc parameters are changed, ensuring that the transforms should always be consistent with the current disc parameters.
Also updated the documentation about the mutable nature of the transforms, and how to use their transform.frozen() method to freeze the transform if needed.
Closes #389
Pull request checklist
[x] Add a clear description of the change
[x] Add any new tests needed
[x] Run spell check on new text visible to user (documentation, GUI etc.)
[x] Check any changes to requirements.txt are reflected in setup.py and conda-forge feedstock
[x] Check code passes CI checks (run run_ci.sh or check GitHub Actions)
Previously, the matplotlib transforms involving
xy
coordinates could end using old values if disc parameters were changed without also callingupdate_transform
. Now, the transforms are automatically updated whenever any disc parameters are changed, ensuring that the transforms should always be consistent with the current disc parameters.Also updated the documentation about the mutable nature of the transforms, and how to use their
transform.frozen()
method to freeze the transform if needed.Closes #389
Pull request checklist
requirements.txt
are reflected insetup.py
and conda-forge feedstockrun_ci.sh
or check GitHub Actions)See CONTRIBUTING.md for more details.