...

Source file src/gonum.org/v1/plot/gob/gob.go

Documentation: gonum.org/v1/plot/gob

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

View as plain text