/
gob.go
50 lines (41 loc) · 1.19 KB
/
gob.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
// Copyright ©2017 The Gonum Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package gob // import "gonum.org/v1/plot/gob"
import (
"encoding/gob"
"image/color"
"gonum.org/v1/plot"
"gonum.org/v1/plot/plotter"
"gonum.org/v1/plot/text"
)
func init() {
// register types for proper gob-encoding/decoding
gob.Register(color.Gray16{})
// plot.Ticker
gob.Register(plot.ConstantTicks{})
gob.Register(plot.DefaultTicks{})
gob.Register(plot.LogTicks{})
// plot.Normalizer
gob.Register(plot.LinearScale{})
gob.Register(plot.LogScale{})
// plot.Plotter
gob.Register(plotter.BarChart{})
gob.Register(plotter.Histogram{})
gob.Register(plotter.BoxPlot{})
gob.Register(plotter.YErrorBars{})
gob.Register(plotter.XErrorBars{})
gob.Register(plotter.Function{})
gob.Register(plotter.GlyphBoxes{})
gob.Register(plotter.Grid{})
gob.Register(plotter.Labels{})
gob.Register(plotter.Line{})
gob.Register(plotter.QuartPlot{})
gob.Register(plotter.Scatter{})
// plotter.XYZer
gob.Register(plotter.XYZs{})
gob.Register(plotter.XYValues{})
// text.Style
gob.Register(&text.Plain{})
gob.Register(&text.Latex{})
}