Display omega in hovertool
This commit is contained in:
parent
475ec003af
commit
4611e00209
@ -87,7 +87,8 @@ def create():
|
||||
temperature_spinner.value = det_data["temperature"][index]
|
||||
|
||||
gamma, nu = calculate_pol(det_data, index)
|
||||
image_source.data.update(gamma=[gamma], nu=[nu])
|
||||
omega = det_data["rot_angle"][index]
|
||||
image_source.data.update(gamma=[gamma], nu=[nu], omega=[omega])
|
||||
|
||||
def update_overview_plot():
|
||||
h5_data = det_data["data"]
|
||||
@ -161,6 +162,7 @@ def create():
|
||||
l=[np.zeros((1, 1))],
|
||||
gamma=[np.zeros((1, 1))],
|
||||
nu=[np.zeros((1, 1))],
|
||||
omega=[np.zeros((1, 1))],
|
||||
x=[0],
|
||||
y=[0],
|
||||
dw=[IMAGE_W],
|
||||
@ -173,12 +175,14 @@ def create():
|
||||
l_glyph = Image(image="l", x="x", y="y", dw="dw", dh="dh", global_alpha=0)
|
||||
gamma_glyph = Image(image="gamma", x="x", y="y", dw="dw", dh="dh", global_alpha=0)
|
||||
nu_glyph = Image(image="nu", x="x", y="y", dw="dw", dh="dh", global_alpha=0)
|
||||
omega_glyph = Image(image="omega", x="x", y="y", dw="dw", dh="dh", global_alpha=0)
|
||||
|
||||
plot.add_glyph(image_source, h_glyph)
|
||||
plot.add_glyph(image_source, k_glyph)
|
||||
plot.add_glyph(image_source, l_glyph)
|
||||
plot.add_glyph(image_source, gamma_glyph)
|
||||
plot.add_glyph(image_source, nu_glyph)
|
||||
plot.add_glyph(image_source, omega_glyph)
|
||||
|
||||
image_glyph = Image(image="image", x="x", y="y", dw="dw", dh="dh")
|
||||
plot.add_glyph(image_source, image_glyph, name="image_glyph")
|
||||
@ -224,6 +228,7 @@ def create():
|
||||
("intensity", "@image"),
|
||||
("gamma", "@gamma"),
|
||||
("nu", "@nu"),
|
||||
("omega", "@omega"),
|
||||
("h", "@h"),
|
||||
("k", "@k"),
|
||||
("l", "@l"),
|
||||
|
Loading…
x
Reference in New Issue
Block a user