Auto range for overview scatter plot

This commit is contained in:
usov_i 2021-03-03 16:53:06 +01:00
parent 7ee8eba007
commit 97836b2906

View File

@ -260,6 +260,10 @@ def create():
ov_param_plot.axis[0].axis_label = scan_motor
ov_plot_mline_source.data.update(xs=xs, ys=ys, param=param, color=color_palette(len(xs)))
if y:
mapper["transform"].low = np.min(ys)
mapper["transform"].high = np.max(ys)
ov_param_plot_scatter_source.data.update(x=x, y=y, param=par)
# Main plot