rbmatlab  1.16.09
 All Classes Namespaces Files Functions Variables Modules Pages
Functions
plot_sequence.m File Reference

plotting a sequence of data slices on polygonal 2d grid (constructed from params if empty) and providing a slider for changing between the data slices. More...

Go to the source code of this file.

Functions

function p = plot_sequence (varargin)
 plotting a sequence of data slices on polygonal 2d grid (constructed from params if empty) and providing a slider for changing between the data slices. More...
 
function  plotsequence>replot (fh, oh, v)
 

Detailed Description

plotting a sequence of data slices on polygonal 2d grid (constructed from params if empty) and providing a slider for changing between the data slices.

Definition in file plot_sequence.m.

Function Documentation

function p = plot_sequence (   varargin)

plotting a sequence of data slices on polygonal 2d grid (constructed from params if empty) and providing a slider for changing between the data slices.

A new figure is opened and the handle returned in p. If further parameters are set, the call is assumed to stem from a callback-function

Every column of data is interpreted as one discrete function dof vector forwarded to the params.plot() function.

required fields in params
  • plot – pointer to the plot-function performing the plotting of a single slice, e.g. plot_element_data(), plot_vertex_data(), fv_plot(), ldg_plot().
optional field of params
  • title – string indicating the title of the newly opened figure
  • clim – 2-vector giving the range of the colormap. If this is set, identical range is used for all slices. Default is the min and max of all slices.
  • clim_tight – if this flag is set, the colorbar is set tightly to the range of every single data slice. Clearly only one of clim or clim_tight should be set.
See also
the chosen params.plot_function for its further params-options
Parameters
vararginusually called with 3 arguments:
1 plot_sequence(data, grid, params)
  • data - data vector to be plotted
  • grid - the underlying grid
  • params - plotting parameters
Alternatively, there can be 5 arguments:
1 plot_sequence(data, grid, params, callbackfigure, cbhandle)
This function is set as a callback function for the time slider uicontrol. The additional arguments are:
  • callbackfigure - handle to the figure
  • cbhandle - handle to the object calling the callback function. This is usually the time slider.
Return values
pfigure handle of plot

Definition at line 17 of file plot_sequence.m.

Here is the caller graph for this function: