Skip to content

Commit

Permalink
Minor bug fix to GeData.plot_spatial_spectrum()
Browse files Browse the repository at this point in the history
  • Loading branch information
ayshih committed Jun 19, 2016
1 parent adfa11d commit 6ae986a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gripspy/science/ge.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,15 +217,15 @@ def plot_multiple_trigger_veto(self, side):
plt.semilogy()

def plot_spatial_spectrum(self, side):
"""Plot the spatial spectrum
"""Plot the spectrum versus channel as a 2D image
Parameters
----------
side : 0 or 1
0 for LV side, 1 for HV side
"""
s_side = self.s_lv if side == 0 else self.s_hv
plt.hist2d(s_side, self.c[self.s, s_side].A1, bins=[np.arange(side*256, (side+1)*256, 1), np.arange(-128, 2048, 8)], cmap='gray')
plt.hist2d(s_side, self.c[self.s, s_side].A1, bins=[np.arange(side*256, (side+1)*256+1), np.arange(-128, 2048, 8)], cmap='gray')
plt.title("CC{0} {1} side".format(self.detector, "LV" if side == 0 else "HV"))

def plot_spectrum(self, asiccha, binning=np.arange(0, 3584, 8)):
Expand Down

0 comments on commit 6ae986a

Please sign in to comment.