@@ -77,7 +77,7 @@ def __repr__(self):
77
77
simple_plot_tmpl = """
78
78
# Autogenerated script to plot named %s using results: %s
79
79
from xogeny.plot_utils import render_simple_plot
80
- render_simple_plot(name=%s, vars=%s, title=%s, legloc=%s, ylabel=%s, ncols=%s, ymax=%s)
80
+ render_simple_plot(name=%s, vars=%s, title=%s, legloc=%s, ylabel=%s, ncols=%s, ymin=%s, ymax=%s)
81
81
""" ;
82
82
83
83
comp_plot_tmpl = """
@@ -88,7 +88,7 @@ def __repr__(self):
88
88
""" ;
89
89
90
90
def add_simple_plot (plot , vars , title , legloc = "upper right" , ylabel = "" ,
91
- res = None , ncols = 1 , ymax = None ):
91
+ res = None , ncols = 1 , ymin = None , ymax = None ):
92
92
if plot in plots :
93
93
raise NameError ("Plot named " + plot + " already exists" );
94
94
if res == None :
@@ -105,6 +105,7 @@ def add_simple_plot(plot, vars, title, legloc="upper right", ylabel="",
105
105
"ylabel" : ylabel ,
106
106
"ncols" : ncols ,
107
107
"ymax" : ymax ,
108
+ "ymin" : ymin ,
108
109
"res" : res
109
110
};
110
111
@@ -151,7 +152,8 @@ def _generate_plots():
151
152
repr (pdata ["res" ]),
152
153
repr (pdata ["vars" ]), repr (pdata ["title" ]),
153
154
repr (pdata ["legloc" ]), repr (pdata ["ylabel" ]),
154
- repr (pdata ["ncols" ]), repr (pdata ["ymax" ])))
155
+ repr (pdata ["ncols" ]),
156
+ repr (pdata ["ymin" ]), repr (pdata ["ymax" ])))
155
157
elif pdata ["type" ]== "compare" :
156
158
ofp .write (comp_plot_tmpl % (repr (plot ),
157
159
repr (pdata ["res1" ]), repr (pdata ["v1" ]),
@@ -216,9 +218,9 @@ def _generate_makefile():
216
218
directory = data ["directory" ]
217
219
srcpath = data ["path" ]
218
220
if len (mods )== 0 :
219
- simflags = ""
221
+ simflags = "-cpu "
220
222
else :
221
- simflags = "-override " + ("," .join (map (lambda x : str (x )+ "=" + str (mods [x ]), mods )))
223
+ simflags = "-cpu - override " + ("," .join (map (lambda x : str (x )+ "=" + str (mods [x ]), mods )))
222
224
223
225
simfails = "true" if data ["simfails" ] else "false"
224
226
compfails = "true" if data ["compfails" ] else "false"
0 commit comments