-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix dxtbx.plot_detector_models for matplotlib 3.5
Fixes #475 Thanks @ndevenish for the report and initial starting point at matplotlib/matplotlib#21688. That implementation didn't give us the nice Z zoom that we want, so after some digging, set_zlim gets us there. The call to nonsingular is what set_zlim does if zmin == zmax, as is the case for a flat detector. It seems to expand out the Z a bit. Calling it directly avoids a UserWarning. Also fix orthographic=True (not sure when this broke)
- Loading branch information
Showing
2 changed files
with
21 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Fix dxtbx.plot_detector_models for matplotlib 3.5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters