Commit ce983675 authored by Peter Jansweijer's avatar Peter Jansweijer

y_origin must be subtracted

parent 5cc95244
......@@ -327,7 +327,7 @@ def raw_to_scipy_array (waveform_raw, byte_order, preamble):
#Convert to unit values.
y_data=scipy.array(struct.unpack(format_string, waveform_raw),
dtype=scipy.float64) * preamble["y_increment"] + preamble["y_origin"]
dtype=scipy.float64) * preamble["y_increment"] - preamble["y_origin"]
x_data=scipy.arange(preamble["points"]) * preamble["x_increment"] + preamble["x_origin"]
#create array with x,y axis values.
......
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