Skip to content

Commit

Permalink
Missing code to hook up panel_numbers option to dxtbx.plot_detector_m…
Browse files Browse the repository at this point in the history
…odels
  • Loading branch information
phyy-nx committed Oct 27, 2017
1 parent cd3e3c6 commit da87338
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions dxtbx/command_line/plot_detector_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,15 @@ def plot_group(g, color, orthographic = False):
if orthographic:
ax.plot(z[0], z[1], color=color)

# Annotate with panel numbers
ax.text(vcen[0], vcen[1], '%d'%g.index())
if params.panel_numbers:
# Annotate with panel numbers
ax.text(vcen[0], vcen[1], '%d'%g.index())
else:
ax.plot(z[0], z[1], z[2], color=color)

# Annotate with panel numbers
ax.text(vcen[0], vcen[1], vcen[2], '%d'%g.index())
if params.panel_numbers:
# Annotate with panel numbers
ax.text(vcen[0], vcen[1], vcen[2], '%d'%g.index())

fig = plt.figure()
colormap = plt.cm.gist_ncar
Expand Down

0 comments on commit da87338

Please sign in to comment.