general improvements to pipeline
This commit is contained in:
@@ -89,10 +89,10 @@ def display_bkg(data, background, std_bkg, headers, histograms=None, binning=Non
|
||||
filt = headers[0]['filtnam1']
|
||||
#plots
|
||||
im = ax2.imshow(data0, norm=LogNorm(data0[data0>0.].mean()/10.,data0.max()), origin='lower', cmap='gray')
|
||||
bkg_im = ax2.imshow(bkg_data0, origin='lower', cmap='Reds', alpha=0.7)
|
||||
bkg_im = ax2.imshow(bkg_data0, origin='lower', cmap='Reds', alpha=0.5)
|
||||
if not(rectangle is None):
|
||||
x, y, width, height, angle, color = rectangle[0]
|
||||
ax2.add_patch(Rectangle((x, y),width,height,edgecolor=color,fill=False))
|
||||
ax2.add_patch(Rectangle((x, y),width,height,edgecolor=color,fill=False,lw=2))
|
||||
ax2.annotate(instr+":"+rootname, color='white', fontsize=10, xy=(0.02, 0.95), xycoords='axes fraction')
|
||||
ax2.annotate(filt, color='white', fontsize=14, xy=(0.02, 0.02), xycoords='axes fraction')
|
||||
ax2.annotate(str(exptime)+" s", color='white', fontsize=10, xy=(0.80, 0.02), xycoords='axes fraction')
|
||||
|
||||
Reference in New Issue
Block a user