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

Function ExampleColorBar_vertical

plotter/colorbar_example_test.go:54–68  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

52}
53
54func ExampleColorBar_vertical() {
55 p := plot.New()
56 l := &plotter.ColorBar{ColorMap: moreland.ExtendedBlackBody()}
57 l.ColorMap.SetMin(0.5)
58 l.ColorMap.SetMax(1.5)
59 l.Vertical = true
60 p.Add(l)
61 p.HideX()
62 p.Y.Padding = 0
63 p.Title.Text = "Title"
64
65 if err := p.Save(40, 300, "testdata/colorBarVertical.png"); err != nil {
66 log.Panic(err)
67 }
68}

Callers

nothing calls this directly

Calls 7

NewFunction · 0.92
ExtendedBlackBodyFunction · 0.92
HideXMethod · 0.80
SaveMethod · 0.80
SetMinMethod · 0.65
SetMaxMethod · 0.65
AddMethod · 0.45

Tested by

no test coverage detected