go(plot): latex-proof regular pic's caption, too
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
surtur 2022-07-19 21:25:09 +02:00
parent c37ef263ae
commit c433b11eea
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D

@ -109,8 +109,8 @@ func plotAllDims(algoStats []stats.Stats, fPrefix, fExt string, ch chan report.P
p.Title.Text = "D: " + fmt.Sprint(s.Dimens) + p.Title.Text = "D: " + fmt.Sprint(s.Dimens) +
", G: " + fmt.Sprint(s.Generations) + ", G: " + fmt.Sprint(s.Generations) +
", I: " + fmt.Sprint(s.Iterations) ", I: " + fmt.Sprint(s.Iterations)
// pic.Caption = p.Title.Text // this is latex-rendered.
pic.Caption = "" pic.Caption = strings.ReplaceAll(p.Title.Text, " ", "~")
// since a single stat slice of algoStats only contains results of a // since a single stat slice of algoStats only contains results of a
// single bench func, it's safe to set the value like this. // single bench func, it's safe to set the value like this.