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

Method StackOn

plotter/barchart.go:92–96  ·  view source on GitHub ↗

StackOn stacks a bar chart on top of another, and sets the XMin and Offset to that of the chart upon which it is being stacked.

(on *BarChart)

Source from the content-addressed store, hash-verified

90// and sets the XMin and Offset to that of the
91// chart upon which it is being stacked.
92func (b *BarChart) StackOn(on *BarChart) {
93 b.XMin = on.XMin
94 b.Offset = on.Offset
95 b.stackedOn = on
96}
97
98// Plot implements the plot.Plotter interface.
99func (b *BarChart) Plot(c draw.Canvas, plt *plot.Plot) {

Callers 2

ExampleBarChartFunction · 0.95

Calls

no outgoing calls

Tested by 2

ExampleBarChartFunction · 0.76