Skip to content

Commit da87338

Browse files
committed
Missing code to hook up panel_numbers option to dxtbx.plot_detector_models
1 parent cd3e3c6 commit da87338

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

dxtbx/command_line/plot_detector_models.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,13 +98,15 @@ def plot_group(g, color, orthographic = False):
9898
if orthographic:
9999
ax.plot(z[0], z[1], color=color)
100100

101-
# Annotate with panel numbers
102-
ax.text(vcen[0], vcen[1], '%d'%g.index())
101+
if params.panel_numbers:
102+
# Annotate with panel numbers
103+
ax.text(vcen[0], vcen[1], '%d'%g.index())
103104
else:
104105
ax.plot(z[0], z[1], z[2], color=color)
105106

106-
# Annotate with panel numbers
107-
ax.text(vcen[0], vcen[1], vcen[2], '%d'%g.index())
107+
if params.panel_numbers:
108+
# Annotate with panel numbers
109+
ax.text(vcen[0], vcen[1], vcen[2], '%d'%g.index())
108110

109111
fig = plt.figure()
110112
colormap = plt.cm.gist_ncar

0 commit comments

Comments
 (0)