Mercurial > repos > public > sbplib
view +noname/plotSolutions.m @ 103:bc5db54f9efd feature/arclen-param
fzero_vec, integral_vec and spline are now local functions in Curve. Renamed arcLengthStretch to arcLengthParametrization. Removed plot_derivative. Added some comments and extra lines + removed unneccesary lines. arcLength is now a method and not static. Constructor does not accept difference operator anymore.
author | Martin Almquist <martin.almquist@it.uu.se> |
---|---|
date | Mon, 07 Dec 2015 17:24:28 +0100 |
parents | ddfb98209aa2 |
children | 7bb2ef637142 |
line wrap: on
line source
function plotSolutions(filename, figename_prefix, plot_type) default_arg('figename_prefix',[]); default_arg('plot_type','plot') save_figures = ~isempty(figename_prefix); sf = SolutionFile(filename); for i = 1:length(sf.keys) key = sf.keys{i}; entry = sf.get(key); method = key.method; order = key.order; m = key.m; T = key.T; repr = entry.repr; runtime = entry.runtime; k = entry.k; discr = entry.discr; [update, hand] = discr.setupPlot(plot_type); update(repr); if save_figures figname = sprintf('%s_%s_o%d_m%d_T%d',figename_prefix,method,order,m,i); fprintf('Saving figure to ''%s''\n',figname); saveeps(hand,figname); end end end