Boxplot marks. Data Attributes --------------- Attributes ---------- : numpy.ndarray (default: []) abscissas of the data points (1d array) y: numpy.ndarray (default: [[]]) Sample data points (2d array) Style Attributes ---------------- Attribut
| 930 | |
| 931 | @register_mark('bqplot.Boxplot') |
| 932 | class Boxplot(Mark): |
| 933 | |
| 934 | """Boxplot marks. |
| 935 | |
| 936 | Data Attributes |
| 937 | --------------- |
| 938 | |
| 939 | Attributes |
| 940 | ---------- |
| 941 | : numpy.ndarray (default: []) |
| 942 | abscissas of the data points (1d array) |
| 943 | y: numpy.ndarray (default: [[]]) |
| 944 | Sample data points (2d array) |
| 945 | |
| 946 | Style Attributes |
| 947 | ---------------- |
| 948 | |
| 949 | Attributes |
| 950 | ---------- |
| 951 | stroke: Color or None |
| 952 | stroke color of the marker |
| 953 | color: Color |
| 954 | fill color of the box |
| 955 | opacities: list of floats (default: []) |
| 956 | Opacities for the markers of the boxplot. Defaults to 1 when the |
| 957 | list is too short, or the element of the list is set to None. |
| 958 | outlier-color: color |
| 959 | color for the outlier |
| 960 | box_width: int (default: None) |
| 961 | width of the box in pixels. The minimum value is 5. |
| 962 | If set to None, box_with is auto calculated |
| 963 | auto_detect_outliers: bool (default: True) |
| 964 | Flag to toggle outlier auto-detection |
| 965 | """ |
| 966 | |
| 967 | # Mark decoration |
| 968 | icon = 'fa-birthday-cake' |
| 969 | name = 'Boxplot chart' |
| 970 | |
| 971 | # Scaled attributes |
| 972 | x = Array([]).tag(sync=True, scaled=True, rtype='Number', |
| 973 | atype='bqplot.Axis', **array_serialization)\ |
| 974 | .valid(array_squeeze, array_dimension_bounds(1, 1)) |
| 975 | |
| 976 | # Second dimension must contain OHLC data, otherwise the behavior |
| 977 | # is undefined. |
| 978 | y = Array([[]]).tag(sync=True, scaled=True, rtype='Number', |
| 979 | atype='bqplot.Axis', **array_serialization)\ |
| 980 | .valid(array_dimension_bounds(1, 2), array_supported_kinds()) |
| 981 | |
| 982 | # Other attributes |
| 983 | scales_metadata = Dict({ |
| 984 | 'x': {'orientation': 'horizontal', 'dimension': 'x'}, |
| 985 | 'y': {'orientation': 'vertical', 'dimension': 'y'} |
| 986 | }).tag(sync=True) |
| 987 | |
| 988 | stroke = Color(None, allow_none=True)\ |
| 989 | .tag(sync=True, display_name='Stroke color') |
nothing calls this directly
no test coverage detected
searching dependent graphs…