Documentation ¶
Overview ¶
Package plot provides methods for plotting data. This package uses the gonum plot library Plot type. Produce a plot using the Plot function and then export into an antha filetype using the Export function
Index ¶
- func AddAxisTitles(plt *plot.Plot, xtitle string, ytitle string)
- func Export(plt *plot.Plot, heightstr string, lengthstr string, filename string) (file wtype.File, err error)
- func FromMinMaxPairs(sheet *xlsx.Sheet, Xminmax []string, Yminmaxarray [][]string, ...)
- func FromSpreadsheet(sheet *xlsx.Sheet, Xdatarange []string, Ydatarangearray [][]string, ...)
- func Plot(Xvalues []float64, Yvaluearray [][]float64) (plt *plot.Plot, err error)
- func RSquared(xname string, xvalues []float64, yname string, yvalues []float64) (rsquared float64, variance float64, formula string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddAxisTitles ¶
AddAxisTitles adds axis titles to the plot
func Export ¶
func Export(plt *plot.Plot, heightstr string, lengthstr string, filename string) (file wtype.File, err error)
Export creates a wtype.file from the plot data. Heights and lengths can be parsed from strings i.e. 10cm. If no valid height or length is specified default values of 10cm will be used but an error will also be returned. If the desired filename specified does not contain a file extension, a png file will be used as the default file format.
func FromMinMaxPairs ¶
func FromMinMaxPairs(sheet *xlsx.Sheet, Xminmax []string, Yminmaxarray [][]string, Exportedfilename string)
FromMinMaxPairs creates a plot from a spreadsheet.
func FromSpreadsheet ¶
func FromSpreadsheet(sheet *xlsx.Sheet, Xdatarange []string, Ydatarangearray [][]string, Exportedfilename string)
FromSpreadsheet creates a plot from a spreadsheet.
Types ¶
This section is empty.