Skip to content
Snippets Groups Projects
Commit 470e32ce authored by Andrew E. Torda's avatar Andrew E. Torda
Browse files

Do not print out temperature axis if we are not cooling.

parent c0b1771e
No related branches found
No related tags found
No related merge requests found
......@@ -63,11 +63,12 @@ n_step 100000`, "phasetrans"},
// add OutNames uses the basename field and makes output names for
// the value and x trajectory plot files and the csv file
func addOutNames (s gentest) string {
a := []string {"xPltName", "fPltName", "fOutName"}
// a :=
ret := s.params
for _, ss := range a {
for _, ss := range []string {"xPltName", "fOutName"} {
ret += "\n" + ss + " " + s.basename
}
ret += "\nfPltName" + " " + s.basename + "_fval"
return ret + "\n"
}
func Test1(t *testing.T) {
......
......@@ -79,12 +79,14 @@ func plotfWrt(cprm *cprm, fname string) error {
AxisType: chart.YAxisSecondary,
Range: &range2{},
}
tmprtrAxis := chart.YAxis{
var tmprtrAxis chart.YAxis
if cprm.coolme { // If we are not cooling, we do not plot
tmprtrAxis = chart.YAxis{ // the temperature axis.
Name: "temperature",
NameStyle: chart.Style{TextRotationDegrees: 360},
Range: &range2{},
}
}
graph := chart.Chart{
Width: 800,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment