How adynascimento/plot works
Plot is a Go visualization wrapper with a Matplotlib-style API. The main workflow is to create a figure, add one or more visualizations and configure them, then render and save or show the result; animation and subplot composition extend that workflow. The graph preserves the README’s major visualization and customization capabilities. Sampled source supports the shared plot state, rendering, and several plot implementations; edges for documented but unsampled features rely on README statements.
Main entry points: plotter.go Plot API · models.go Plot state · scatter.go Scatter plots · contour.go Contour plots
Components 18
Plot API
- Plot API
plotter/plotter.go - Plot state
plotter/models.go
Visualizations
- Line plots
plotter/line.go - Scatter plots
plotter/scatter.go - Histograms
plotter/histogram.go - Contour plots
plotter/contour.go - Image display
plotter/plotter.go - Subplots
plotter/subplotter.go - Animations
plotter/animation.go
Styling and composition
Rendering and output
- Figure rendering
plotter/plotter.go - PNG and GIF output
plotter/plotter.go - Window display
plotter/plotter.go
Other components
- Go caller
- Gonum Plot
- Gio windowing
Connections 27
- Go caller → Plot API: creates figure
README.md - Plot API → Line plots: adds lines
README.md - Plot API → Scatter plots: adds points
README.md - Plot API → Histograms: adds distribution
README.md - Plot API → Contour plots: adds contours
README.md - Plot API → Image display: adds image
README.md - Plot API → Subplots: creates layout
README.md - Plot API → Animations: configures frames
README.md - Line plots → Plot state: updates plot state
plotter/line.go - Scatter plots → Plot state: adds plotter
plotter/scatter.go - Histograms → Plot state: adds histogram
plotter/histogram.go - Contour plots → Plot state: adds contours
plotter/contour.go - Image display → Plot state: adds image
plotter/plotter.go - Plot API → Plot state: maintains figure
plotter/plotter.go - Scatter plots → Colormaps: colors points
plotter/scatter.go - Contour plots → Colormaps: colors levels
plotter/contour.go - Scatter plots → Colorbars: configures scale bar
plotter/scatter.go - Contour plots → Colorbars: configures scale bar
plotter/contour.go - Plot API → Legends: configures legend
README.md - Subplots → Figure rendering: composes plots
plotter/subplotter.go - Plot API → Figure rendering: draws figure
plotter/plotter.go - Figure rendering → Gonum Plot: draws plot
plotter/plotter.go - Plot API → PNG and GIF output: saves figure
plotter/plotter.go - Animations → PNG and GIF output: encodes GIF
plotter/animation.go - Plot API → Window display: shows figure
plotter/plotter.go - Window display → Gio windowing: opens window
plotter/plotter.go - Animations → Figure rendering: renders frames
plotter/animation.go