Plt. If minimumAmplitude:Īmpserr.append()Īx.errorbar(ts, amps, yerr= 2*np.array(ampserr), fmt="ko-", capsize = 5, capthick= 2, elinewidth=3, markersize=5) # Append to list if error in amplitude and amplitude itself is within reasonable bounds Result = gmodel.fit(y, x=x, amp=8, cen=approxcen, wid=1) Y = loadtxt(fullprefix + ".Spe", skiprows= 12, max_rows = 8192) # Generate the time array and coincidence plotsįullprefix = folderToAnalyze + prefix + finalprefix """1-d gaussian: gaussian(x, amp, cen, wid)""" import numpy as npįrom numpy import exp, loadtxt, pi, sqrt, random, linspace I don't mind if this done via saving a file (probably prefered) or in the IDE console. The relevant variable I'm trying ot output is amps.
so python probably isn't needed for that!
ORIGIN GRAPHING OLDER VERSION CODE
I can get the code to print out the y values from the graph, but am struggling to change it into a form that could be copied and pasted into a spreadsheet format like origin's. I would like to then manipulate this data separately in origin. For more information, see the Support area of the OriginLab website (/Support). The area under each gaussian is then taken and plotted against time (which is essentially which text file it was multiplied by 18). earlier versions of Origin, as you may suffer some loss of information or data that is specific to the new version. Let us now give a more precise characterization of the terms version, origin, and version. I have a code that reads in 50 text files, each one generates a histogram, and a gaussian is fitted for each histogram. The resulting derivation graph is called the version graph.