eye_mask#

EyeDiagram.eye_mask(points, x_units='ns', y_units='mV', enable_limits=False, upper_limit=500, lower_limit=-500, color=(0, 255, 0), x_offset='0ns', y_offset='0V', transparency=0.3)[source]#

Create an eye diagram in the plot.

Parameters:
pointslist

Points of the eye mask in the format [[x1,y1,],[x2,y2],...].

x_unitsstr, optional

X points units. The default is "ns".

y_unitsstr, optional

Y points units. The default is "mV".

enable_limitsbool, optional

Whether to enable the upper and lower limits. The default is False.

upper_limitfloat, optional

Upper limit if limits are enabled. The default is 500.

lower_limitstr, optional

Lower limit if limits are enabled. The default is -500.

colortuple, optional

Mask in (R, G, B) color. The default is (0, 255, 0). Each color value must be an integer in a range from 0 to 255.

x_offsetstr, optional

Mask time offset with units. The default is "0ns".

y_offsetstr, optional

Mask value offset with units. The default is "0V".

transparencyfloat, optional

Mask transparency. The default is 0.3.

Returns:
bool

True when successful, False when failed.