MCPcopy
hub / github.com/guptarohit/asciigraph / XAxisRange

Function XAxisRange

options.go:252–256  ·  view source on GitHub ↗

XAxisRange enables the X-axis and maps the given domain [min, max] onto the plot width.

(min, max float64)

Source from the content-addressed store, hash-verified

250
251// XAxisRange enables the X-axis and maps the given domain [min, max] onto the plot width.
252func XAxisRange(min, max float64) Option {
253 return optionFunc(func(c *config) {
254 c.XAxisRange = &[2]float64{min, max}
255 })
256}
257
258// XAxisTickCount sets the number of ticks on the X-axis. Default is 5, minimum is 2.
259func XAxisTickCount(n int) Option {

Callers 5

mainFunction · 0.92
mainFunction · 0.92
TestPlotFunction · 0.85
TestPlotManyFunction · 0.85
TestXAxisFunction · 0.85

Calls 1

optionFuncFuncType · 0.85

Tested by 3

TestPlotFunction · 0.68
TestPlotManyFunction · 0.68
TestXAxisFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…