Skip to content
Snippets Groups Projects
Commit ab7da4e7 authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

rm parse_commandline from ex/varia/TrVsDepth (#1123)

parent 8c9f84f6
No related branches found
No related tags found
1 merge request!2911rm parse_commandline from public script examples (#1123)
...@@ -36,7 +36,5 @@ if __name__ == '__main__': ...@@ -36,7 +36,5 @@ if __name__ == '__main__':
sample = get_sample() sample = get_sample()
angles = [0.4, 0.5, 0.6, 0.65, 0.7] angles = [0.4, 0.5, 0.6, 0.65, 0.7]
results = [simulate(sample, ai) for ai in angles] results = [simulate(sample, ai) for ai in angles]
plotargs = bp.parse_commandline() bp.plot_multicurve(results, legendloc='lower right')
plotargs['legendloc'] = 'lower right'
bp.plot_multicurve(results, **plotargs)
bp.plt.show() bp.plt.show()
...@@ -36,11 +36,12 @@ if __name__ == '__main__': ...@@ -36,11 +36,12 @@ if __name__ == '__main__':
sample = get_sample() sample = get_sample()
angles = [0.4, 0.5, 0.6, 0.65, 0.7] angles = [0.4, 0.5, 0.6, 0.65, 0.7]
results = [simulate(sample, ai) for ai in angles] results = [simulate(sample, ai) for ai in angles]
<%- if test_mode or figure_mode -%>
plotargs = bp.parse_commandline() plotargs = bp.parse_commandline()
plotargs['legendloc'] = 'lower right' plotargs['legendloc'] = 'lower right'
bp.plot_multicurve(results, **plotargs) bp.plot_multicurve(results, **plotargs)
<%- if test_mode or figure_mode -%>
bp.export(**plotargs) bp.export(**plotargs)
<%- else -%> <%- else -%>
bp.plot_multicurve(results, legendloc='lower right')
bp.plt.show() bp.plt.show()
<%- end -%> <%- end -%>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment