Commit 9e71964b authored by Neil Vaytet's avatar Neil Vaytet
Browse files

Changed figure name

parent dea71dc9
......@@ -33,8 +33,8 @@ from scipy.ndimage import gaussian_filter1d
python get_wfm_windows.py --filename=spectrum.txt --plot
This will print the window edges to standard output and produce an image
figure.pdf showing the different variables that were used to find the
window limits.
wfm_auto_frames.pdf showing the different variables that were used to
find the window limits.
2. Calling from another python script: you must have a 2D array containing
......@@ -445,7 +445,7 @@ def get_wfm_windows(data=None, filename=None, nwindows=6, bg_threshold=0.05,
ax.set_ylim([0.0,1.05*np.amax(data[:,1])])
ax.plot(x[good_peaks[0]], -ymax, "o", color="r",label="Valleys")
ax.legend(loc=(0,1.02),ncol=4, fontsize=7)
fig.savefig("figure.pdf",bbox_inches="tight")
fig.savefig("wfm_auto_frames.pdf",bbox_inches="tight")
# If we want output in Rebin format, then construct the array of strings
if rebin_step_for_string_output is not None:
......
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