eye_mask#
- AMIConturEyeDiagram.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)#
Create an eye diagram in the plot.
- Parameters:
- points
list
Points of the eye mask in the format
[[x1,y1,],[x2,y2],...]
.- x_units
str
,optional
X points units. The default is
"ns"
.- y_units
str
,optional
Y points units. The default is
"mV"
.- enable_limitsbool,
optional
Whether to enable the upper and lower limits. The default is
False
.- upper_limit
float
,optional
Upper limit if limits are enabled. The default is
500
.- lower_limit
str
,optional
Lower limit if limits are enabled. The default is
-500
.- color
tuple
,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_offset
str
,optional
Mask time offset with units. The default is
"0ns"
.- y_offset
str
,optional
Mask value offset with units. The default is
"0V"
.- transparency
float
,optional
Mask transparency. The default is
0.3
.
- points
- Returns:
- bool
True
when successful,False
when failed.