Multiple line plots sharing abscissas axis in gonum/plot
问题 Is it possible to make multiple line plots with common abscissas axis in gonum/plot? In matplotlib it would look like this. 回答1: Yes, it is possible. You can use plot.Align : package main import ( "math/rand" "os" "gonum.org/v1/plot" "gonum.org/v1/plot/plotter" "gonum.org/v1/plot/vg" "gonum.org/v1/plot/vg/draw" "gonum.org/v1/plot/vg/vgimg" ) func main() { rand.Seed(int64(0)) const rows, cols = 2, 1 plots := make([][]*plot.Plot, rows) for j := 0; j < rows; j++ { plots[j] = make([]*plot.Plot,