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

Function NewGrid

plotter/grid.go:35–40  ·  view source on GitHub ↗

NewGrid returns a new grid with both vertical and horizontal lines using the default grid line style.

()

Source from the content-addressed store, hash-verified

33// NewGrid returns a new grid with both vertical and
34// horizontal lines using the default grid line style.
35func NewGrid() *Grid {
36 return &Grid{
37 Vertical: DefaultGridLineStyle,
38 Horizontal: DefaultGridLineStyle,
39 }
40}
41
42// Plot implements the plot.Plotter interface.
43func (g *Grid) Plot(c draw.Canvas, plt *plot.Plot) {

Callers 15

TestDrawGlyphBoxesFunction · 0.92
ExampleScatter_colorFunction · 0.92
Example_logScaleFunction · 0.92
TestFloatPrecisionFunction · 0.92
Example_invertedScaleFunction · 0.92
ExampleScatterFunction · 0.92
ExampleLine_stepLineFunction · 0.92
TestLabelsWithGlyphBoxesFunction · 0.92
Example_timeSeriesFunction · 0.92
clippedFilledLineFunction · 0.92
ExampleLine_filledLineFunction · 0.92

Calls

no outgoing calls

Tested by 15

TestDrawGlyphBoxesFunction · 0.74
ExampleScatter_colorFunction · 0.74
Example_logScaleFunction · 0.74
TestFloatPrecisionFunction · 0.74
Example_invertedScaleFunction · 0.74
ExampleScatterFunction · 0.74
ExampleLine_stepLineFunction · 0.74
TestLabelsWithGlyphBoxesFunction · 0.74
Example_timeSeriesFunction · 0.74
clippedFilledLineFunction · 0.74
ExampleLine_filledLineFunction · 0.74