3 % Helper
function copying extracting relevant information
for plot_params from
6 % This is especially
for use with models
using geometry transformation. Here,
7 % the geometry parameters also need to be known by the
'plot_params'
10 % plot_params: structure holding the parameters
for plotting.
13 % plot_params: the updated structure enriched with fields extracted from the
16 plot_params.geometry_transformation = model.geometry_transformation;
18 plot_params.xrange = model.xrange;
19 plot_params.yrange = model.yrange;
20 if isfield(model,
'geometry_spline_type')
21 plot_params.geometry_spline_type = model.geometry_spline_type;
22 plot_params.geometry_transformation_spline_x = model.geometry_transformation_spline_x;
23 plot_params.geometry_transformation_spline_y = model.geometry_transformation_spline_y;
24 plot_params.hill_height = model.hill_height;
27 if isfield(model, 'postprocess')
28 plot_params.postprocess = model.postprocess;
29 plot_params.gravity = model.gravity;
30 plot_params.clim = model.clim;
function plot_params = copy_model_data_to_plot_params(model, plot_params)
Helper function copying extracting relevant information for plot_params from the model.