graphmerge

package module
v0.0.0-...-dc8bdc9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 17, 2019 License: MIT Imports: 2 Imported by: 0

README

go-graphmerge

Merge multiple graphs with x- and y-coordinates into one graph

Example

...
// Graph 1
x1 := []float64{0, 1, 2, 3, 4, 5, 6, 7, 8, 9}
y1 := []float64{0, 2, 4, 6, 8, 10, 12, 14, 16, 18}
// Graph 2
x2 := []float64{0, 2, 4, 6, 8, 10}
y2 := []float64{0, 1, 2, 3, 4, 5}
// Graph 3
x3 := []float64{11, 15, 18, 22}
y3 := []float64{-1, -2, -3, -4}
// Merged Graph
x, y, err := graphmerge.GraphMerge(x1, y1, x2, y2, x3, y3)
if err != nil {
    ...
}
...

Result

example.png

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GraphMerge

func GraphMerge(c ...[]float64) ([]float64, []float64, error)

GraphMerge merges multiple graphes into one big graph. Usage: x, y, err := GraphMerge(x1, y1, x2, y2, ..., xN, yN)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL