keep_x#

DataXY.keep_x(xmin, xmax, squeeze=True, ysetval=0.0)[source]#

Only keep data within [xmin, xmax).

Parameters:
xmin, xmaxfloat

Minimum (inclusive) and maximum (exclusive) x values.

squeezebool, default True

If true, remove data outside of gate. Otherwise, keep data but set y values to ysetvat.

ysetvalfloat, default 0.0

See squeeze.

Only applies if squeeze is False.