1 function p = ldg_plot(dofs,grid,params)
2 %
function p = ldg_plot(dofs,grid,params)
4 %
function plotting a single scalar ldg
function on triangular grid
5 % A patch plot is performed as
default using speified number of
6 % subsamplings of the triangles. Each patch is plotted linearly
7 % interpolated (hence only showing
true values in subsampling nodes.)
8 % On each triangle-edge, subsamp_level points are inserted.
10 % p is the list of handles to the graphics primitives
12 % grid must provide the fields
13 % X,Y,VI,CX,CY,nelements,nvertices and nneigh;
15 % params must specify the ldg-type: params.dimrange, params.pdeg
17 % optional fields of params:
18 % shrink_factor : if this flag is given, the elements are plotted shrinked
19 % axis_equal : if this flag is set, set axis to equal scale
20 % no_lines : if this flag is set, no lines are drawn
21 % show_colorbar : if this flag is set, a colorbar is drawn (default 1)
22 % colorbar_location : string specifying the position of the
23 % colorbar, e.g. 'South','EastOutside' (default), etc.
24 % clim : if this 2-vector is set, the colorbar is set to
27 % Bernard Haasdonk 2.2.2009
39 p=plot_discfunc(df,params);