Skip to content

plotutil: add GoldenRatio

Sebastien Binet requested to merge sbinet-gonum:golden-ratio into master

This CL adds a simple functionality to create plots following the Golden proportions.

Typical use would look like:

  w, h := plotutil.GoldenRatio(10*vg.Centimeter)
  err := p.Save(w, h, "foo.png")

Merge request reports

Loading