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

Struct QuartPlot

plotter/quartile.go:37–55  ·  view source on GitHub ↗

QuartPlot implements the Plotter interface, drawing a plot to represent the distribution of values. This style of the plot appears in Tufte's "The Visual Display of Quantitative Information".

Source from the content-addressed store, hash-verified

35// This style of the plot appears in Tufte's "The Visual
36// Display of Quantitative Information".
37type QuartPlot struct {
38 fiveStatPlot
39
40 // Offset is added to the x location of each plot.
41 // When the Offset is zero, the plot is drawn
42 // centered at its x location.
43 Offset vg.Length
44
45 // MedianStyle is the line style for the median point.
46 MedianStyle draw.GlyphStyle
47
48 // WhiskerStyle is the line style used to draw the
49 // whiskers.
50 WhiskerStyle draw.LineStyle
51
52 // Horizontal dictates whether the QuartPlot should be in the vertical
53 // (default) or horizontal direction.
54 Horizontal bool
55}
56
57// NewQuartPlot returns a new QuartPlot that represents
58// the distribution of the given values.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected