orbplot

package
v0.0.0-...-cec3619 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PlotFullOrbitLine

func PlotFullOrbitLine(p *plot.Plot, orb orbcore.Orbit, c color.RGBA, legend bool) error

PlotFullOrbitLine takes a plot and orbit and draws a line for its full orbit in the provided color

func PlotFullOrbitLines

func PlotFullOrbitLines(p *plot.Plot, orbits []orbcore.Orbit, colors []color.RGBA, legend bool) error

PlotFullOrbitLines plots the full orbits of the provided orbits on the plot

func PlotInnerSolarSystemLines

func PlotInnerSolarSystemLines(p *plot.Plot, legend bool) error

PlotInnerSolarSystemLines plots the major planets of the inner solar system on the provided plot

func PlotOuterSolarSystemLines

func PlotOuterSolarSystemLines(p *plot.Plot, legend bool) error

PlotOuterSolarSystemLines plots the major planets of the outer solar system on the provided plot

func PlotPoints

func PlotPoints(p *plot.Plot, orb []*orbcore.Orbit, c []color.RGBA, legend bool) error

PlotPoints renders a point for each orbit object paired with the color list

func PlotSolarSystemLines

func PlotSolarSystemLines(p *plot.Plot, legend bool) error

PlotSolarSystemLines plots the major planets of the solar system on the provided plot

func PlotSun

func PlotSun(p *plot.Plot) error

PlotSun adds a yellow dot at the origin.

func PositionToPointsXY

func PositionToPointsXY(rows []*orbcore.Position) plotter.XYs

PositionToPointsXY Converts many Position objects to something that can be plotted.

func Rainbow

func Rainbow(numOfSteps, step int) color.RGBA

Rainbow generates a colour range that roughly matches the rainbow colour spectrum.

func RainbowList

func RainbowList(numOfSteps int) []color.RGBA

RainbowList returns a list of colours

Types

This section is empty.

Jump to

Keyboard shortcuts

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