Skip to content

Live scatter

If the scan contains counters data which have to be displayed is 2D, the scatter widget will be displayed automatically.

That’s the case for mesh scans.

Flint screenshot

APIs

Here is the available commands which can be used from the BLISS shell.

Get the plot

f = flint()
amesh(sy,-.1,.1,20,sz,-.3,0,30,.001,fluo_diode)
f.wait_end_of_scans()

p = f.get_live_plot("default-scatter")

Interactive data selection

This plot provides an API to interact with region of interest.

Colormap

An API is provided to custom the colormap.

ct(tomocam)

# Make sure the scan was also completed in flint side
f = flint()
amesh(sy,-.1,.1,20,sz,-.3,0,30,.001,fluo_diode)
f.wait_end_of_scans()

p = f.get_live_plot(tomocam)

p.set_colormap(lut="gray",
               vmin=0, vmax="auto",
               normalization="log",
               autoscale_mode="stddev3")

Axis channel

You can retrieve the name of the channel used as axis.

p.xaxis_channel_name
p.yaxis_channel_name

The result is a string from the scan BLISS nomenclature. For example axis:sx, axis:sy or timer:elapsed_time. If nothing is selected the result also can be None.