rbmatlab  1.16.09
 All Classes Namespaces Files Functions Variables Modules Pages
plot_leafvertex_data.m
1 function p = plot_leafvertex_data(grid,data,params)
2 %function p = plot_leafvertex_data(grid,data,params)
3 % plot method for data on the leaf level of the grid.
4 %
5 % Currently only implemented for 2D. A patch plot is performed, such that the
6 % vertices have corresponding values as given by data, the values in between
7 % are interpolated by MATLAB.
8 %
9 % Return values:
10 % p: this is the list of handles to the graphics primitives
11 %
12 % See also: plot_vertex_data() for optional params fields
13 
14 % Bernard Haasdonk 23.3.2007
15 
16 if nargin==1
17  params = [];
18  data = zeros(grid.nvertices,1);
19 end;
20 
21 dim = grid.dimension;
22 
23 if (dim~=2)
24  error('plot_leafvertex_data not yet implemented for other than 2D');
25 end;
26 
27 % get minimal information required for plotting
28 gridtmp = gen_plot_data(grid);
29 
30 % forward call to 2d vertex plot routine
31 p=plot_vertex_data(gridtmp,data,params);
32 
33 end
34 
Definition: leaf.m:17