plots

package
v0.0.0-...-5a144c3 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateBoxPlot

func CreateBoxPlot(values map[time.Time][]int)

func CreateLinePlotForMaintainerPackageCount

func CreateLinePlotForMaintainerPackageCount(maintainerName string, db *sql.DB, createPlot bool)

func GenerateLinePlotForAverageMaintainerPackageCount

func GenerateLinePlotForAverageMaintainerPackageCount(outputFolder string, counts []float64)

func GenerateLinePlotForAverageResults

func GenerateLinePlotForAverageResults(outputFolder, outputName string, counts []float64)

func GenerateLinePlotForMaintainerReach

func GenerateLinePlotForMaintainerReach(outputFolder string, maintainerName string, counts []float64, createPlot bool)

func GeneratePointsFromFloatArray

func GeneratePointsFromFloatArray(values []float64) plotter.XYs

func GeneratePointsFromMaintainerCounts

func GeneratePointsFromMaintainerCounts(counts evolution.MaintainerCount) plotter.XYs

func GenerateSortedLinePlotMaintainerPackageCount

func GenerateSortedLinePlotMaintainerPackageCount(outputFolder string, valuesPerYear map[int][]float64)

func GetNestedDirName

func GetNestedDirName(maintainerName string, dir string) string

func GetPlotFileName

func GetPlotFileName(maintainerName string, dir string) string

func PlotFiledistributionAllPackages

func PlotFiledistributionAllPackages(values []util.Pair, filePath string) error

func SaveMaintainerPlot

func SaveMaintainerPlot(maintainerName string, dir string, p *plot.Plot)

func SavePlot

func SavePlot(fileName string, p *plot.Plot)

func SaveValues

func SaveValues(name string, dir string, data []byte)

Types

type YearTicks

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

func (YearTicks) Ticks

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

Jump to

Keyboard shortcuts

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