MCPcopy Index your code
hub / github.com/gonum/plot / NewQuartPlot

Function NewQuartPlot

plotter/quartile.go:69–80  ·  view source on GitHub ↗

NewQuartPlot returns a new QuartPlot that represents the distribution of the given values. An error is returned if the plot is created with no values. The fence values are 1.5x the interquartile before the first quartile and after the third quartile. Any value that is outside of the fences are dr

(loc float64, values Valuer)

Source from the content-addressed store, hash-verified

67// whiskers stretch) are the minimum and maximum
68// values that are not outside the fences.
69func NewQuartPlot(loc float64, values Valuer) (*QuartPlot, error) {
70 b := new(QuartPlot)
71 var err error
72 if b.fiveStatPlot, err = newFiveStat(0, loc, values); err != nil {
73 return nil, err
74 }
75
76 b.MedianStyle = DefaultQuartMedianStyle
77 b.WhiskerStyle = DefaultQuartWhiskerStyle
78
79 return b, err
80}
81
82// Plot draws the QuartPlot on Canvas c and Plot plt.
83func (b *QuartPlot) Plot(c draw.Canvas, plt *plot.Plot) {

Callers 1

ExampleQuartPlotFunction · 0.92

Calls 1

newFiveStatFunction · 0.85

Tested by 1

ExampleQuartPlotFunction · 0.74