MCPcopy
hub / github.com/gonum/plot

github.com/gonum/plot @v0.16.0 sqlite

repository ↗ · DeepWiki ↗ · release v0.16.0 ↗
1,232 symbols 5,034 edges 167 files 765 documented · 62%
README

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.

Extension points exported contracts — how you extend this code

Thumbnailer (Interface)
Thumbnailer wraps the Thumbnail method, which draws the small image in a legend representing the style of data. [9 implementers]
legend.go
Plotter (Interface)
Plotter is an interface that wraps the Plot method. Some standard implementations of Plotter can be found in the gonum.o [21 …
plot.go
Canvas (Interface)
A Canvas is the main drawing interface for 2D vector graphics. The origin is in the bottom left corner. [7 implementers]
vg/vg.go
GlyphDrawer (Interface)
A GlyphDrawer wraps the DrawGlyph function. [9 implementers]
vg/draw/canvas.go
Action (Interface)
Action is a vector graphics action as defined by the vg.Canvas interface. Each method of Canvas has a corresponding Acti [13 …
vg/recorder/recorder.go
Ticker (Interface)
Ticker creates Ticks in a specified range [5 implementers]
axis.go
GridXYZ (Interface)
GridXYZ describes three dimensional data where the X and Y coordinates are arranged on a rectangular grid. [4 implementers]
plotter/heat.go
XYer (Interface)
XYer wraps the Len and XY methods. [3 implementers]
plotter/plotter.go

Core symbols most depended-on inside this repo

Add
called by 150
plot.go
Points
called by 124
vg/len.go
New
called by 93
plot.go
Save
called by 70
plot.go
CheckPlot
called by 59
cmpimg/checkplot.go
Norm
called by 58
axis.go
Points
called by 53
font/len.go
Close
called by 48
vg/vg.go

Shape

Method 570
Function 433
Struct 158
TypeAlias 39
Interface 28
FuncType 4

Languages

Go100%

Modules by API surface

vg/recorder/recorder.go79 symbols
vg/draw/canvas.go56 symbols
plotter/plotter.go45 symbols
vg/vgsvg/vgsvg.go44 symbols
axis.go42 symbols
vg/vgpdf/vgpdf.go40 symbols
vg/vgimg/vgimg.go34 symbols
plot.go30 symbols
plotter/contour_test.go29 symbols
plotter/contour.go29 symbols
vg/vgtex/canvas.go28 symbols
palette/palette.go26 symbols

Dependencies from manifests, versioned

codeberg.org/go-fonts/latin-modernv0.4.0 · 1×
codeberg.org/go-fonts/liberationv0.5.0 · 1×
codeberg.org/go-latex/latexv0.1.0 · 1×
codeberg.org/go-pdf/fpdfv0.10.0 · 1×
github.com/ajstarks/svgov0.0.0-2021102423504 · 1×
github.com/campoy/embedmdv1.0.0 · 1×
github.com/golang/freetypev0.0.0-2017060900350 · 1×
github.com/pmezard/go-difflibv1.0.0 · 1×
golang.org/x/imagev0.25.0 · 1×
golang.org/x/textv0.23.0 · 1×
gonum.org/v1/gonumv0.16.0 · 1×
rsc.io/pdfv0.1.1 · 1×

For agents

$ claude mcp add plot \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact