MCPcopy Index your code
hub / github.com/bqplot/bqplot / Boxplot

Class Boxplot

bqplot/marks.py:932–1000  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

930
931@register_mark('bqplot.Boxplot')
932class 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')

Callers

nothing calls this directly

Calls 2

array_dimension_boundsFunction · 0.85
array_supported_kindsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…