XErrorBars implements the plot.Plotter, plot.DataRanger, and plot.GlyphBoxer interfaces, drawing horizontal error bars, denoting error in Y values.
| 155 | // and plot.GlyphBoxer interfaces, drawing horizontal error |
| 156 | // bars, denoting error in Y values. |
| 157 | type XErrorBars struct { |
| 158 | // XYs is a copy of the points for this line. |
| 159 | plot.XYs |
| 160 | |
| 161 | // XErrors is a copy of the X errors for each point. |
| 162 | XErrors |
| 163 | |
| 164 | // PXYs is the actual pixel plotting coordinates for each XY value, |
| 165 | // representing the high, center value of the error bar. |
| 166 | PXYs plot.XYs |
| 167 | |
| 168 | // LineStyle is the style used to draw the error bars. |
| 169 | LineStyle plot.LineStyle |
| 170 | |
| 171 | // CapWidth is the width of the caps drawn at the top |
| 172 | // of each error bar. |
| 173 | CapWidth units.Value |
| 174 | } |
| 175 | |
| 176 | // Returns a new XErrorBars plotter, or an error on failure. The error values |
| 177 | // from the XErrorer interface are interpreted as relative to the corresponding |
nothing calls this directly
no outgoing calls
no test coverage detected