14 lines
490 B
Python
14 lines
490 B
Python
import ch.psi.pshell.imaging.Data as Data
|
|
|
|
d = load_data("2017/06/16/20170616_122305_snapshot.h5|/data")
|
|
atts = get_attributes("2017/06/16/20170616_122305_snapshot.h5|/data")
|
|
data = Data(d)
|
|
iv = data.integrateVertically(False)
|
|
ih = data.integrateHorizontally(False)
|
|
xp = atts["x_profile"]
|
|
yp = atts["y_profile"]
|
|
p1, p2 = plot([xp, yp], ["X profile", "Y profile"])
|
|
p1.addSeries(LinePlotSeries("d"))
|
|
p2.addSeries(LinePlotSeries("d"))
|
|
p1.getSeries(1).setData(iv)
|
|
p2.getSeries(1).setData(ih) |