1 function p =
plot_sim_data(dmodel, model_data, sim_data, plot_params)
2 %
function plot_sim_data(descr, model_data, sim_data, plot_params)
3 % plots the simulation data as returned by detailed_simulation()
6 % sim_data: simulation data structure as returned by detailed_simulation()
7 % plot_params: structure which controls the plot output
9 % Optional fields of plot_params:
10 % bind_to_model: Sometimes the plot can adapted according to the parameters.
11 % For example
if the domain of the simulation changes with
12 % the parameter. In
this case this boolean flag can be set,
13 % and the copy_model_descr_to_plot_params() function is
14 % called to copy important parameters to the 'plot_params'
16 % plot: function pointer to a function plotting a single snapshot
17 % for a specific time instant. (default = 'descr.plot')
19 % Required fields of sim_data:
20 % U: DOF vector of solution snapshots
23 % p : Matlab GUI handle to figure window
25 % function plotting simulation results
27 % Martin Drohmann 15.12.2009
30 if isfield(plot_params, 'bind_to_model') ...
31 && plot_params.bind_to_model
32 plot_params = copy_model_descr_to_plot_params(descr, ...
35 % plot_params.plot = descr.plot;
36 if ~isfield(plot_params,'plot')
37 plot_params.plot = descr.plot;
function p = plot_sequence(varargin)
plotting a sequence of data slices on polygonal 2d grid (constructed from params if empty) and provid...
function p = plot_sim_data(model, model_data, sim_data, plot_params)
function performing the plot of the simulation results as specified in model.