Skip to content

Outliers Source

Bases: Enum

Whether a BoxChart draws its outliers, the values beyond its whiskers.

Added in version 0.1.0

Examples:

import numdaplot as ndp

prices = ndp.Array.from_list([12.0, 15.5, 14.0, 17.0, 13.5, 16.0, 14.5, 29.0])
chart = ndp.BoxChart(outliers=ndp.Outliers.HIDDEN)
plot = ndp.Plot.box(prices, chart)
plot.show()

Plot drawn by the example

Attributes

SHOWN = auto() Source

Each outlier is drawn as a point. Default value.

Added in version 0.1.0

Examples:

import numdaplot as ndp

prices = ndp.Array.from_list([12.0, 15.5, 14.0, 17.0, 13.5, 16.0, 14.5, 29.0])
chart = ndp.BoxChart(outliers=ndp.Outliers.SHOWN)
plot = ndp.Plot.box(prices, chart)
plot.show()

Plot drawn by the example

HIDDEN = auto() Source

The outliers are not drawn. They still count in the box and the whiskers.

Added in version 0.1.0

Examples:

import numdaplot as ndp

prices = ndp.Array.from_list([12.0, 15.5, 14.0, 17.0, 13.5, 16.0, 14.5, 29.0])
chart = ndp.BoxChart(outliers=ndp.Outliers.HIDDEN)
plot = ndp.Plot.box(prices, chart)
plot.show()

Plot drawn by the example