MCPcopy Create free account
hub / github.com/cogentcore/core / XErrorBars

Struct XErrorBars

plot/plots/errbars.go:157–174  ·  view source on GitHub ↗

XErrorBars implements the plot.Plotter, plot.DataRanger, and plot.GlyphBoxer interfaces, drawing horizontal error bars, denoting error in Y values.

Source from the content-addressed store, hash-verified

155// and plot.GlyphBoxer interfaces, drawing horizontal error
156// bars, denoting error in Y values.
157type 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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected