Skip to content

gonum/plot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Feb 15, 2025
db57062 · Feb 15, 2025
Aug 18, 2022
Feb 15, 2025
Jun 17, 2024
Aug 31, 2023
Feb 12, 2021
Jun 17, 2024
Oct 22, 2024
Feb 12, 2023
Jun 17, 2024
Jun 17, 2024
May 22, 2020
Feb 13, 2025
Dec 14, 2020
Jan 26, 2019
Feb 13, 2015
Dec 15, 2020
Feb 12, 2020
Jun 4, 2021
Nov 27, 2018
Feb 12, 2021
Apr 9, 2020
Aug 31, 2023
Jun 17, 2024
Feb 12, 2021
Nov 27, 2018
Feb 15, 2025
Feb 13, 2025
Feb 4, 2019
Feb 4, 2019
Aug 8, 2021
Feb 12, 2021
Oct 4, 2019
Aug 18, 2022
Jun 17, 2024
Aug 18, 2022
Aug 17, 2021

Repository files navigation

Gonum Plot

Build status Build status codecov.io coveralls.io GoDoc go.dev reference

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, gopdf, and Gio.

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.