go: speed up plotting by saving plots to .pdf
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
d397137cfc
commit
1793f7bdd9
@ -116,7 +116,7 @@ func PrepComparisonOfMeans(wg *sync.WaitGroup) (*report.PicList, int) {
|
||||
|
||||
// construct plots concurrently.
|
||||
go PlotMeanValsMulti(
|
||||
wg, dimens, iterations, bench, "plot-", ".svg",
|
||||
wg, dimens, iterations, bench, "plot-", ".pdf",
|
||||
dimXAlgoMeanVals...,
|
||||
)
|
||||
}
|
||||
@ -164,7 +164,7 @@ func DoRandomSearch(wg *sync.WaitGroup, m *sync.Mutex) {
|
||||
defer close(pMeanCh)
|
||||
|
||||
for i := range algoStats {
|
||||
go plotAllDims(algoStats[i], "plot", ".svg", pCh, pMeanCh)
|
||||
go plotAllDims(algoStats[i], "plot", ".pdf", pCh, pMeanCh)
|
||||
}
|
||||
|
||||
pLs := []report.PicList{}
|
||||
@ -227,7 +227,7 @@ func DoStochasticHillClimbing(wg *sync.WaitGroup, m *sync.Mutex) {
|
||||
defer close(pMeanCh)
|
||||
|
||||
for _, algoStat := range algoStats {
|
||||
go plotAllDims(algoStat, "plot", ".svg", pCh, pMeanCh)
|
||||
go plotAllDims(algoStat, "plot", ".pdf", pCh, pMeanCh)
|
||||
}
|
||||
|
||||
pLs := []report.PicList{}
|
||||
|
@ -14,7 +14,8 @@
|
||||
\centering
|
||||
{{- range $j, $u := $v.Pics }}
|
||||
\begin{subfigure}{0.30\textwidth}
|
||||
{\includesvg[scale=0.45]{ {{- printf "%s" $u.FilePath -}} }}
|
||||
% using .pdf
|
||||
{\includegraphics[scale=0.45]{ {{- printf "%s" $u.FilePath -}} }}
|
||||
\caption{ {{- printf "\\scriptsize{%s}" $u.Caption -}} }
|
||||
\end{subfigure}
|
||||
\hfill
|
||||
|
@ -14,7 +14,9 @@
|
||||
\begin{subfigure}{0.30\textwidth}
|
||||
% note: this accomodates 3 plots a row comfortably..should the requirements
|
||||
% change, this would have to be reworked.
|
||||
{\includesvg[scale=0.45]{ {{- printf "%s" $v.FilePath -}} }}
|
||||
% {\includesvg[scale=0.45]{ {{- printf "%s" $v.FilePath -}} }}
|
||||
% using .pdf
|
||||
{\includegraphics[scale=0.45]{ {{- printf "%s" $v.FilePath -}} }}
|
||||
\caption{ {{- printf "\\scriptsize{%s}" $v.Caption -}} }
|
||||
\end{subfigure}
|
||||
\hfill
|
||||
@ -22,7 +24,9 @@
|
||||
{{ range $k, $w := .PicsMean }}
|
||||
\begin{subfigure}{0.30\textwidth}
|
||||
\vspace{2em}
|
||||
{\includesvg[scale=0.45]{ {{- printf "%s" $w.FilePath -}} }}
|
||||
% {\includesvg[scale=0.45]{ {{- printf "%s" $w.FilePath -}} }}
|
||||
% using .pdf
|
||||
{\includegraphics[scale=0.45]{ {{- printf "%s" $w.FilePath -}} }}
|
||||
\caption{ {{- printf "\\scriptsize{%s}" $w.Caption -}} }
|
||||
\end{subfigure}
|
||||
\hfill
|
||||
|
Loading…
Reference in New Issue
Block a user