diff options
author | Daniel Friesel <derf@finalrewind.org> | 2018-03-28 16:50:09 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2018-03-28 16:50:09 +0200 |
commit | 4b3ff326b8f97b5f849b8619d984d2e2d50ab9b9 (patch) | |
tree | 84f9f944f328b5f32f8398563f85b6497d3b74e2 /bin | |
parent | f5690d1ca3042fcbbe92ebc7f4fcc2785e6cfee3 (diff) |
export plot data for pgfplots (experimental and ugly)
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/analyze-archive.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/bin/analyze-archive.py b/bin/analyze-archive.py index 88cfd62..7779b4b 100755 --- a/bin/analyze-archive.py +++ b/bin/analyze-archive.py @@ -155,9 +155,11 @@ if __name__ == '__main__': if 'plot-param' in opts: for kv in opts['plot-param'].split(';'): - state_or_trans, attribute, param_name, *functions = kv.split(' ') - if len(functions): - functions = [gplearn_to_function(' '.join(functions))] - plotter.plot_param(model, state_or_trans, attribute, model.param_index(param_name), extra_functions=functions) + state_or_trans, attribute, param_name, *function = kv.split(' ') + if len(function): + function = gplearn_to_function(' '.join(function)) + else: + function = None + plotter.plot_param(model, state_or_trans, attribute, model.param_index(param_name), extra_function=function) sys.exit(0) |