tripcolor — Pseudo color 2-D plot based on a triangulation
hdl = tripcolor(TRI,X,Y,C)
3 by n matrix
1 by n matrix
1 by n matrix
n by n matrix
Handle of the created Fac3d entity
tripcolor(TRI,X,Y,C) displays the triangles defined in the 3-by-M face matrix TRI as pseudocolor patches. A row of TRI contains indexes into the X,Y vertex vectors to define a single triangular face. The color is defined by the vector C.
tripcolor(...,'param','value','param','value'...) allows additional param/value pairs to be used. See pcolor for the possible param/value pairs.
load(PLOTLIB+'tridem.dat') subplot(2,2,1); tripcolor(nodes,xy(1,:),xy(2,:),P(:,1)','edgecolor',[1 1 0]); colorbar on; axis equal; subplot(2,2,2); tripcolor(nodes,xy(1,:),xy(2,:),P(:,1)'); shading flat; colorbar on; axis equal; subplot(2,2,3); tripcolor(nodes,xy(1,:),xy(2,:),P(:,1)'); shading interp colorbar on; axis equal; subplot(2,2,4); tripcolor(nodes,xy(1,:),xy(2,:),P(:,1)'); shading interp colorbar on; axis equal; caxis([0.1 0.2]);