Commit 0ded2321 authored by LUSTIG Peter's avatar LUSTIG Peter

removed show plot

parent 036d47ef
......@@ -315,9 +315,9 @@ def Plot_CompPur(completness, purity, threshold,nsim=None, savename=None):
im=axes[1, i].imshow(purity[:, :, i], vmin=0, vmax=1)
axes[1, i].set_xlabel("thresh={:.2f}".format(threshold[i]))
if i == (threshold_bins-1):
print('-----------')
#print('-----------')
divider = make_axes_locatable(axes[1,i])
cax = divider.append_axes('right', size='10%', pad=0.0)
cax = divider.append_axes('right', size='5%', pad=0.0)
fig=plt.gcf()
fig.colorbar(im, cax=cax, orientation='vertical')
if nsim is not None:
......@@ -326,7 +326,7 @@ def Plot_CompPur(completness, purity, threshold,nsim=None, savename=None):
axes[1, 0].set_ylabel("purity")
if savename is not None:
plt.savefig(savename)
plt.show(block=True)
#plt.show(block=True)
def AddParametersToHeader(header, threshold, nsim, method, flux):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment