Creates a PolyBoxPlot object.
param data: | Raw data to create a box plot from. |
---|---|
type data: | sequence of int or float |
param **attr: | keyword attributes |
Keyword and Default | Description | Type |
---|---|---|
colour='black' |
edge color | wx.Colour |
width=1 |
edge width | float |
style=wx.PENSTYLE_SOLID |
edge style | wx.PenStyle |
legend='' |
legend string | str |
Note
np.NaN
and np.inf
values are ignored.
TODO
__init__ |
|
boundingBox |
Returns bounding box for the plot. |
calcBpData |
Box plot points |
calcOutliers |
Calculates the outliers. Must be called after calcBpData. |
draw |
Draws a box plot on the DC. |
getClosestPoint |
Returns the index of closest point on the curve, pointXY, |
getSymExtent |
Width and Height of Marker |
PolyBoxPlot
(PolyPoints)¶Creates a PolyBoxPlot object.
Parameters: |
|
---|
Keyword and Default | Description | Type |
---|---|---|
colour='black' |
edge color | wx.Colour |
width=1 |
edge width | float |
style=wx.PENSTYLE_SOLID |
edge style | wx.PenStyle |
legend='' |
legend string | str |
Note
np.NaN
and np.inf
values are ignored.
TODO
__init__
(self, points, **attr)¶boundingBox
(self)¶Returns bounding box for the plot.
Override method.
calcBpData
(self, data=None)¶Box plot points:
Median (50%) 75% 25% low_whisker = lowest value that’s >= (25% - (IQR * 1.5)) high_whisker = highest value that’s <= 75% + (IQR * 1.5)
outliers are outside of 1.5 * IQR
calcOutliers
(self, data=None)¶Calculates the outliers. Must be called after calcBpData.
wrapper
(instance, dc, *args, **kwargs)¶Draws a box plot on the DC.
The following draw order is required:
This is because
Other than that, the draw order can be changed.
getClosestPoint
(self, pntXY, pointScaled=True)¶Returns the index of closest point on the curve, pointXY, scaledXY, distance x, y in user coords.
Override method.
if pointScaled == True, then based on screen coords if pointScaled == False, then based on user coords
getSymExtent
(self, printerScale)¶Width and Height of Marker