BoxPlot implements the Plotter interface, drawing a boxplot to represent the distribution of values.
| 48 | // BoxPlot implements the Plotter interface, drawing |
| 49 | // a boxplot to represent the distribution of values. |
| 50 | type BoxPlot struct { |
| 51 | fiveStatPlot |
| 52 | |
| 53 | // Offset is added to the x location of each box. |
| 54 | // When the Offset is zero, the boxes are drawn |
| 55 | // centered at their x location. |
| 56 | Offset vg.Length |
| 57 | |
| 58 | // Width is the width used to draw the box. |
| 59 | Width vg.Length |
| 60 | |
| 61 | // CapWidth is the width of the cap used to top |
| 62 | // off a whisker. |
| 63 | CapWidth vg.Length |
| 64 | |
| 65 | // GlyphStyle is the style of the outside point glyphs. |
| 66 | GlyphStyle draw.GlyphStyle |
| 67 | |
| 68 | // FillColor is the color used to fill the box. |
| 69 | // The default is no fill. |
| 70 | FillColor color.Color |
| 71 | |
| 72 | // BoxStyle is the line style for the box. |
| 73 | BoxStyle draw.LineStyle |
| 74 | |
| 75 | // MedianStyle is the line style for the median line. |
| 76 | MedianStyle draw.LineStyle |
| 77 | |
| 78 | // WhiskerStyle is the line style used to draw the |
| 79 | // whiskers. |
| 80 | WhiskerStyle draw.LineStyle |
| 81 | |
| 82 | // Horizontal dictates whether the BoxPlot should be in the vertical |
| 83 | // (default) or horizontal direction. |
| 84 | Horizontal bool |
| 85 | } |
| 86 | |
| 87 | // NewBoxPlot returns a new BoxPlot that represents |
| 88 | // the distribution of the given values. The style of |
nothing calls this directly
no outgoing calls
no test coverage detected