Skip to content

Commit

Permalink
Fix dxtbx.plot_detector_models for new versions of matplotlib
Browse files Browse the repository at this point in the history
Closes #573
  • Loading branch information
phyy-nx committed Nov 7, 2022
1 parent b18c59a commit 0db69f0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions newsfragments/XXX.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix dxtbx.plot_detector_models for new versions of matplotlib
2 changes: 1 addition & 1 deletion src/dxtbx/command_line/plot_detector_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def run(args=None):
if params.orthographic:
ax = fig.gca()
else:
ax = fig.gca(projection="3d")
ax = fig.add_subplot(projection="3d")

if params.orthographic and params.project_onto == "image_plane":
plot_image_plane_projection(detector, color, ax, params.panel_numbers)
Expand Down

0 comments on commit 0db69f0

Please sign in to comment.