Search code examples
gogonum

Multiple plots in single image in gonum/plot


Is it possible to combine multiple plots in a single image in gonum/plot? They should have their own axes. Is it possible to stack them vertically, horizontally or probably in a grid?

In matplotlib it would look like this. Subplots


Solution

  • You can do this using plot.Align.

    Also have a look at the example code I posted to your issue Multiple line plots sharing abscissas axis in gonum/plot. The code is applicable to this issue as well.