A repository for plotting and visualizing data
Switch branches/tags
Clone or download
npotts and sbinet plot,plotter: add support for inverting an axis
* Add in structures to invert an axis

This change was spurned by attempting to plot atmospheric data, which is
commonly plotted against an inverted pressure axis
(https://www.ncl.ucar.edu/Applications/height_lat.shtml).  This change
adds direct library support for inverting an axis, rather than using
external structures to do the same thing

Signed-off-by: npotts <npotts@users.noreply.github.com>

* Added Golden example

Add testable example to check if the output matches

* Grammer and govetish formats

- Retitled output PNG
- Golden output needed to be updated

* Implement suggestions from code review

* Rewording and minor gammer changes

- Implemented more suggestions from @kortschak.  Mostly grammer changes

* Removed accidentally pasted line

* More grammer fixes
Latest commit db5ea5f Dec 8, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github github: ask for gonum/plot rather than gonum proper Feb 28, 2018
.travis all: fix copyright headers and add header check Nov 27, 2018
gob all: fix copyright headers and add header check Nov 27, 2018
internal/cmpimg all: fix copyright headers and add header check Nov 27, 2018
palette all: fix copyright headers and add header check Nov 27, 2018
plotter plot,plotter: add support for inverting an axis Dec 8, 2018
plotutil all: fix copyright headers and add header check Nov 27, 2018
testdata plot: Make Align honor tile margins Jun 13, 2018
tools/bezier all: fix copyright headers and add header check Nov 27, 2018
vg vgimg: Add option to specify image background color. Dec 6, 2018
.gitignore gitignore: add .tex files to the gitignore list Aug 15, 2017
.travis.yml all: fix copyright headers and add header check Nov 27, 2018
AUTHORS AUTHORS: add Sebastien Binet Feb 13, 2015
LICENSE Change to the gonum license. Feb 4, 2015
README.md all: migrate to gonum.org/v1/plot Aug 29, 2017
align.go all: fix copyright headers and add header check Nov 27, 2018
align_test.go all: fix copyright headers and add header check Nov 27, 2018
axis.go plot,plotter: add support for inverting an axis Dec 8, 2018
axis_test.go plot,plotter: add support for inverting an axis Dec 8, 2018
doc.go all: fix copyright headers and add header check Nov 27, 2018
go.mod all: update go.mod for new Go-module-friendly draw2d version Sep 5, 2018
go.sum all: update go.mod for new Go-module-friendly draw2d version Sep 5, 2018
labelling.go all: fix copyright headers and add header check Nov 27, 2018
labelling_test.go all: fix copyright headers and add header check Nov 27, 2018
legend.go all: fix copyright headers and add header check Nov 27, 2018
legend_test.go all: fix copyright headers and add header check Nov 27, 2018
plot.go all: fix copyright headers and add header check Nov 27, 2018
plot_test.go all: fix copyright headers and add header check Nov 27, 2018

README.md

Gonum Plot Build Status Coverage Status GoDoc

gonum/plot is the new, official fork of code.google.com/p/plotinum. It provides an API for building and drawing plots in Go. Note that this new API is still in flux and may change. See the wiki for some example plots.

For additional Plotters, see the Community Plotters Wiki page.

There is a discussion list on Google Groups: gonum-dev@googlegroups.com.

gonum/plot is split into a few packages:

  • The plot package provides simple interface for laying out a plot and provides primitives for drawing to it.
  • The plotter package provides a standard set of Plotters which use the primitives provided by the plot package for drawing lines, scatter plots, box plots, error bars, etc. to a plot. You do not need to use the plotter package to make use of gonum/plot, however: see the wiki for a tutorial on making your own custom plotters.
  • The plotutil package contains a few routines that allow some common plot types to be made very easily. This package is quite new so it is not as well tested as the others and it is bound to change.
  • The vg package provides a generic vector graphics API that sits on top of other vector graphics back-ends such as a custom EPS back-end, draw2d, SVGo, X-Window and gopdf.

Documentation

Documentation is available at:

https://godoc.org/gonum.org/v1/plot

Installation

You can get gonum/plot using go get:

go get gonum.org/v1/plot/...

If you write a cool plotter that you think others may be interested in using, please post to the list so that we can link to it in the gonum/plot wiki or possibly integrate it into the plotter package.