sacpic

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	PicHeight vg.Length = 5
	PicWeight vg.Length = 20

	LineSize = 0.1

	// FileType .eps, .jpg, .jpeg, .pdf, .png, .svg, .tex, .tif and .tiff.
	FileType = ".pdf"
)
View Source
var SoftColors = []color.Color{
	rgb(0, 0, 0),
	rgb(241, 90, 96),
	rgb(122, 195, 106),
	rgb(90, 155, 212),
	rgb(250, 167, 91),
	rgb(158, 103, 171),
	rgb(206, 112, 88),
	rgb(215, 127, 180),
}

Functions

func AddLines

func AddLines(plt *plot.Plot, name []string, pts []plotter.XYs) error

func Color

func Color(i int) color.Color

func Magnitude

func Magnitude(min, max float64) int

func NewLine

func NewLine(data plotter.XYs) (*line, error)

func OpenBrowser

func OpenBrowser(url string)

func Plot

func Plot(fileNames []string, sacHead []sacio.SacHead, sacData []sacio.SacData)

func Plot1

func Plot1(fileNames []string, sacHead []sacio.SacHead, sacData []sacio.SacData)

func Plot2

func Plot2(fileNames []string, sacHead []sacio.SacHead, sacData []sacio.SacData)

func PlotFft

func PlotFft(fileNames []string, sacHead []sacio.SacHead, sacData []sacio.SacData)

func PlotFft1

func PlotFft1(fileNames []string, sacHead []sacio.SacHead, sacData []sacio.SacData)

func SavePic

func SavePic(d *[]PicData, fileNames []string, m mod)

Types

type DefaultTicks

type DefaultTicks struct{}

func (DefaultTicks) Ticks

func (DefaultTicks) Ticks(min, max float64) []plot.Tick

type PicData

type PicData struct {
	// contains filtered or unexported fields
}

func NewPicData

func NewPicData(sacHead []sacio.SacHead, sacData []sacio.SacData) []PicData

Jump to

Keyboard shortcuts

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