Differences
This shows you the differences between two versions of the page.
documentation:language_reference:objects:spectra:functions:shift [2016/09/25 23:50] – created Maurits W. Haverkort | documentation:language_reference:objects:spectra:functions:shift [2016/10/10 09:41] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Shift ====== | ||
+ | ### | ||
+ | Shifts a spectrum //G// by a constant, i.e. // | ||
+ | ### | ||
+ | |||
+ | ===== Example ===== | ||
+ | |||
+ | ### | ||
+ | Take the spectra defined in [[documentation: | ||
+ | ### | ||
+ | |||
+ | ==== Input ==== | ||
+ | <code Quanty Example.Quanty> | ||
+ | dofile(" | ||
+ | |||
+ | GShift = Spectra.Shift(G, | ||
+ | G.Print({{" | ||
+ | GShift.Print({{" | ||
+ | |||
+ | gnuplotScript = gnuplotHead .. [[ | ||
+ | set output " | ||
+ | plot " | ||
+ | " | ||
+ | ]] | ||
+ | |||
+ | file = io.open(" | ||
+ | file: | ||
+ | file: | ||
+ | |||
+ | os.execute(" | ||
+ | os.execute(" | ||
+ | </ | ||
+ | |||
+ | ==== Result ==== | ||
+ | ### | ||
+ | The resulting picture is: | ||
+ | ### | ||
+ | {{: | ||
+ | |||
+ | ===== Available functions ===== | ||
+ | {{indexmenu> |